mobile-detective

1.0.1 • Public • Published

Mobile Detective

Will return an object that gives information about the users device.

Install

npm install --save-dev mobile-detective

Useage

var mobileDetective = require('mobile-detective');
 
if(mobileDetective.any) {
    console.log('YOUR ON MOBILE DAWG');
}

The Object it returns will look like this:

{
    apple: {
        phone : boolean,
        ipod : boolean,
        tablet : boolean,
        device : boolean
    },
    android : {
        phone: boolean,
        tablet: boolean,
        device: boolean
    },
    windows: {
        phone: boolean,
        tablet: boolean,
        device: boolean
    },
    other: {
        blackberry: boolean,
        blackberry10: boolean,
        opera: boolean,
        firefox: boolean,
        device: boolean
    },
    seven_inch: boolean,
    any: boolean,
    phone: boolean,
    tablet: boolean
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i mobile-detective

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

3.62 kB

Total Files

3

Last publish

Collaborators

  • greglarrenaga