universal-user-agent
Get a user agent string in both browser and node
Last updated a year ago by gr2m .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install universal-user-agent 
SYNC missed versions from official npm registry.

universal-user-agent

Get a user agent string in both browser and node

@latest Build Status Greenkeeper

const { getUserAgent } = require("universal-user-agent");
// or import { getUserAgent } from "universal-user-agent";

const userAgent = getUserAgent();
// userAgent will look like this
// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
// in node: Node.js/v8.9.4 (macOS High Sierra; x64)

Credits

The Node implementation was originally inspired by default-user-agent.

License

ISC

Current Tags

  • 7.0.2                                ...           latest (a year ago)
  • 6.0.1                                ...           release-6.x (a year ago)

15 Versions

  • 6.0.1                                ...           a year ago
  • 7.0.2                                ...           a year ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           3 years ago
  • 6.0.0                                ...           4 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 16
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (10)

© 2010 - cnpmjs.org x YWFE | Home | YWFE