detect-device-js

    1.0.7 • Public • Published

    detect-device.js

    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

    Install

    npm i detect-device-js

    DownloadsWeekly Downloads

    2

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    36.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • matswainson