3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

Detect Android Tablet or Phone within device family #47

Closed steveworkman closed 9 years ago

steveworkman commented 10 years ago

For Chrome on Android, the UA string can tell you if the device is a phone or a tablet, which is really useful. The documentation is here: https://developer.chrome.com/multidevice/user-agent

Currently ua.device.family gives you the name of the device (i.e. Nexus 7). It would be great if it could also say `ua.device.type = "Tablet"``

3rd-Eden commented 9 years ago

Closing this, all changes and regexp updates should be made against regexp database that we use, not this module.

( https://github.com/tobie/ua-parser/blob/master/regexes.yaml )