detect-device-js
v1.0.7
Published
JavaScript parser of User Agent strings to detect unique interactive devices
Downloads
3
Maintainers
Readme
detect-device.js
JavaScript parser of User Agent strings to detect unique interactive devices
Example
var device = require('device-detect-js');
/* {
type: 'Console',
userAgent: 'Xbox One'
} */
console.log(device.type); // Console
console.log(device.userAgent); // Xbox One
Supported devices:
- Android
- Apple iPad
- Apple iPhone
- Apple iPod
- Apple TV
- Amazon Kindle Fire
- BlackBerry
- Google Nexus 5, 6, 7 & 10
- Google TV
- Internet Explorer
- Opera Mini
- Nokia
- Nintendo 3DS
- Nintendo Switch
- Nintendo WiiU
- Playstation 3
- Playstation 4
- Samsung Galaxy S5
- Smart TV
- Windows Phone
- Xbox 360
- Xbox One