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

user-agent-parse

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-agent-parse - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

history.md

23

lib/user-agent-parse.js

@@ -12,3 +12,3 @@ /*!

*/
exports.version = '0.1.0';
exports.version = '1.0.6';

@@ -63,11 +63,14 @@ /**

'iPad': /ipad/i
, 'iPhone': /iphone/i
, 'Windows Vista': /windows nt 6\.0/i
, 'Windows 7 or 8': /windows nt 6\.\d+/i
, 'Windows 2003': /windows nt 5\.2+/i
, 'Windows XP': /windows nt 5\.1+/i
, 'Windows 2000': /windows nt 5\.0+/i
, 'OS X $1.$2': /os x (\d+)[._](\d+)/i
, 'Linux': /linux/i
, 'Googlebot': /googlebot/i
, 'iPhone': /iphone/i
, 'Windows Vista': /windows nt 6\.0/i
, 'Windows 7 or 8': /windows nt 6\.\d+/i
, 'Windows 2003': /windows nt 5\.2+/i
, 'Windows XP': /windows nt 5\.1+/i
, 'Windows 2000': /windows nt 5\.0+/i
, 'OS X $1.$2': /os x (\d+)[._](\d+)/i
, 'Linux': /linux/i
, 'Googlebot': /googlebot/i,
, 'Android': /android/i,
, 'BlackBerry': /blackberry/i,
, 'Windows Mobile': /Windows Phone OS/i
};

@@ -74,0 +77,0 @@

{
"name": "user-agent-parse",
"description": "user-agent parser",
"version": "1.0.5",
"description": "user agent parser, get browser type, os, mobile etc..",
"version": "1.0.6",
"repository": {

@@ -18,6 +18,9 @@ "type": "git",

"keywords": [
"browser",
"user agent",
"user-agent",
"browser type",
"browser user agent",
"parse"
],
"readme": "# node-user-agent-parse\n\n ## Overview\n\n Parse user agents a bit like PHP's get_browser() http://php.net/manual/en/function.get-browser.php\n\n ## Example\n\n var userAgent = require('user-agent')\n userAgent.parse('Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8')\n // => { name: 'safari', version: '4.0dp1', os: 'Windows XP', full: '... same string as above ...', device_type:'desktop' }\n ## Credits\n\n Heavily Based (Blatantly ripped from *ahem*) on https://github.com/soldair/node-ua-device-type and https://github.com/jujhars13/node-user-agent-parse\n\n ## TODO\n\n BDD using vows\n\n ##License\n\n License is MIT, go nuts. That's how we roll here at Buto.\n\n http://opensource.org/licenses/mit-license.php\n\n",
"readme": "# node-user-agent-parse\n\n ## Overview\n\n Parse user agents a bit like PHP's get_browser() http://php.net/manual/en/function.get-browser.php\n\n ## Example\n\n `var userAgent = require('user-agent')\n userAgent.parse('Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8')\n // => { name: 'safari', version: '4.0dp1', os: 'Windows XP', full: '... same string as above ...', device_type:'desktop' }\n` ## Credits\n\n Heavily Based (Blatantly ripped from *ahem*) on https://github.com/soldair/node-ua-device-type and https://github.com/jujhars13/node-user-agent-parse\n\n ## TODO\n\n BDD using vows\n\n ##License\n\n License is MIT, go nuts. That's how we roll here at Buto.\n\n http://opensource.org/licenses/mit-license.php\n\n",
"readmeFilename": "README.md",

@@ -24,0 +27,0 @@ "_id": "user-agent-parse@1.0.5",

@@ -9,5 +9,5 @@ # node-user-agent-parse

var userAgent = require('user-agent')
`var userAgent = require('user-agent')
userAgent.parse('Mozilla/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/526.9 (KHTML, like Gecko) Version/4.0dp1 Safari/526.8')
// => { name: 'safari', version: '4.0dp1', os: 'Windows XP', full: '... same string as above ...', device_type:'desktop' }
// => { name: 'safari', version: '4.0dp1', os: 'Windows XP', full: '... same string as above ...', device_type:'desktop' }`

@@ -14,0 +14,0 @@ ## Credits

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