detect-mobile-browser
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "detect-mobile-browser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "It is a very simple & small javascript plugin to detect all major modern mobile browsers.", | ||
@@ -5,0 +5,0 @@ "main": "detect-browser.js", |
@@ -6,3 +6,3 @@ Detect Mobile Browser | ||
**Usage:-** | ||
**Usage Frotnend:-** | ||
@@ -19,6 +19,35 @@ ```javascript | ||
**Usage Backend:-** | ||
User as a ExpressJS middleware | ||
```javascript | ||
var mobileBrowser = require('./detect-browser'); | ||
... | ||
... | ||
app.use(mobileBrowser()); | ||
app.get('/', function (req, res){ | ||
... | ||
... | ||
console.log(req.SmartPhone.isAny()); | ||
... | ||
... | ||
}); | ||
``` | ||
## Bower | ||
$ bower install browser-detector --save | ||
$ bower install browser-detector --save | ||
## NPM | ||
$ npm install detect-mobile-browser --save |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5587
51
4