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

device-detector

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

device-detector - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"version": "0.0.4",
"version": "0.0.5",
"name": "device-detector",

@@ -4,0 +4,0 @@ "description": "Simple way to detect device info on Node.js and Browser",

@@ -90,4 +90,7 @@ device-detector

var deviceInfo = DeviceDetector.parse(ua);
// return
/**
```
deviceInfo is an object looks like this:
```
{

@@ -100,5 +103,6 @@ type: 'Desktop', // or Mobile, Tablet, Bot, Util, or Unknown

}
**/
```
Another example, you can see how it will be used with [ExpressJS](http://expressjs.com/) and [morgan](https://github.com/expressjs/morgan) to show shorter logs:

@@ -105,0 +109,0 @@

/**
* Device Detector v0.0.4
* Device Detector v0.0.5
* Author by @ndaidong

@@ -4,0 +4,0 @@ * GitHub : git@github.com:techpush/device-detector.git

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