Note: Detect.js is a JavaScript library to detect platforms, versions, manufacturers and types based on the navigator.userAgent string. This code is based on, and modified from, the original work of Tobie Langel's UA-Parser: https://github.com/tobie/ua-parser. UA-Parser is subsequently a port of BrowserScope's user agent string parser.
As initially touted, the biggest contribution to this code is the work of Steve Souders and the list of regex tests.
Features
User-Agent parsing (obviously)
AMD/Common.js support
device, os and browser detection of:
name
family
version
major
minor
patch
device supports: manufacturer and type as well
Custom regex builds using node.js
Creating a Custom Build
Creating a custom build of the regex profiles will help reduce file size and is strongly recommended. The default detect.js and detect.min.js files include all regex profiles and is therefor much larger then, I'm sure, your needs.