Skip to content

Browser detection library based on express-device, but without the express part

License

Notifications You must be signed in to change notification settings

gavboulton/device

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

device - useragent device detection based on express-device

usage

To install: $ npm install device

Example use:

var device = require('device');
device.useragent_is("Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3");

will return 'tablet'

About

Browser detection library based on express-device, but without the express part

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%