Socket
Socket
Sign inDemoInstall

user-agent-parse

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    user-agent-parse

user agent parser, get browser type, os, mobile etc..


Version published
Weekly downloads
280
increased by85.43%
Maintainers
1
Install size
11.7 kB
Created
Weekly downloads
 

Readme

Source

node-user-agent-parse

Overview

Parse user agents a bit like PHP's get_browser() http://php.net/manual/en/function.get-browser.php

Example

 `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' }`

Credits

Heavily Based (Blatantly ripped from ahem) on https://github.com/soldair/node-ua-device-type and https://github.com/jujhars13/node-user-agent-parse

TODO

BDD using vows

##License

License is MIT, go nuts. That's how we roll here at Buto.

http://opensource.org/licenses/mit-license.php

Keywords

FAQs

Last updated on 26 Apr 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc