UA Detector is a library that focus on useragent analysing.
UA Detector runs on Node.js. You should install Node.js(at least 0.10.0) first, then do this in command line:
npm install uadetector -g
uadetect -v
uadetect "an useragent string" -devicebrand
uadetect "an useragent string" -os
uadetect "an useragent string" -browsercore
uadetect "an useragent string" -browser
#Advanced usage
uadetect "an useragent string" -devicebrand -format "%name|%version"
uadetect "an useragent string" -devicebrand -os -browsercore -browser