Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-mobile-browser

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-mobile-browser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc