mobile-detector
v1.0.3
Published
Detect if the user is browsing from mobile or tablet.
Downloads
67
Maintainers
Readme
Mobile detector
Detect if the user is browsing from mobile or tablet.
Install:
npm i [email protected] --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