npm.io
1.0.3 • Published 9 years ago

mobile-detector

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0

Mobile detector

Detect if the user is browsing from mobile or tablet.

Install:

npm i mobile-detector@1.0.2 --save

Usage:

ES5
 var detector = require('mobile-detector');
 
 detector.isMobile(); // true
 detector.isMobileOrTablet(); // true
ES6
 import { isMobile, isMobileOrTablet } from 'mobile-detector';
 
 isMobile(); // true
 isMobileOrTablet(); // true
License

MIT

Keywords