device-detect
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "device-detect", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "JavaScript module to check if user agent to return the device and browser.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,6 +14,6 @@ Device Detect | ||
```js | ||
var deviceDetect = require('device-detect'); | ||
var deviceDetect = require('device-detect')(); | ||
// return all device and browser object | ||
deviceDetect = deviceDetect(); | ||
console.log(deviceDetect); | ||
@@ -25,5 +25,27 @@ // result example: | ||
} */ | ||
console.log(deviceDetect.device); // returns Macintosh | ||
console.log(deviceDetect.browser); // returns Chrome | ||
``` | ||
## Supported | ||
Devices: | ||
- iPhone | ||
- iPad | ||
- iPod | ||
- Blackberry | ||
- WindowsMobile | ||
- Android | ||
- Macintosh | ||
- Windows | ||
Browsers: | ||
- Chrome | ||
- Opera | ||
- Firefox | ||
- IE | ||
- Safari | ||
## Release History | ||
* 1.0.5: Update documentation. | ||
* 1.0.4: Add support for Windows Mobile. | ||
@@ -30,0 +52,0 @@ * 1.0.3: Update documentation. |
4371
66