Detect Mobile Browser
Small plugin to detect mobile browser
Usage Frontend:-
;
OR
;
OR (browserify):
var SmartPhone = false;moduleexports = { ;}jQuery;
Usage Backend:-
Use as an ExpressJS middleware
var mobileBrowser = ; ...... app; app;
Bower
$ bower install browser-detector --save
NPM
$ npm install detect-mobile-browser --save
SPM
$ spm install detect-mobile-browser --save
List of detection functions:
- isAndroid
- isBlackBerry
- isBlackBerryPlayBook
- isBlackBerry10
- isIOS
- isIPhone
- isIPad
- isIPod
- isOpera
- isWindows
- isWindowsMobile
- isWindowsDesktop
- isFireFox
- isNexus
- isKindleFire
- isPalm
- isAny