device-detector
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"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 |
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
38598
161