JavaScript parser of User Agent strings to detect unique interactive devices
JavaScript parser of User Agent strings to detect unique interactive devices
var device = require('device-detect-js');
/* {
type: 'Console',
userAgent: 'Xbox One'
} */
console.log(device.type); // Console
console.log(device.userAgent); // Xbox One