mobile-detect : Device detection (phone, tablet, desktop, mobile grade, os, versions). You can installing mobile-detect npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install mobile-detect $ sudo npm install -g mobile-detect
If want to update the mobile-detect package execute the command as below,
$ sudo npm update mobile-detect
Update package globally,
$ npm install -g mobile-detect
$ sudo git clone https://github.com/rektide/mobile-detect.git
$ sudo npm install -g ./mobile-detect
mobile-detect@1.3.7 /usr/lib/node_modules/mobile-detect
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall mobile-detect
| Package Name | mobile-detect |
| Version | 1.3.7 |
| Description | Device detection (phone, tablet, desktop, mobile grade, os, versions) |
| Released Date | 2017-09-06T09:52:29.939Z |
| Published by | hgoebl |
| How to Learn | https://www.npmjs.com/package/mobile-detect/tutorial |