Skip to content

dsanders11/universal-user-agent

 
 

Repository files navigation

universal-user-agent

Get a user agent string across all JavaScript Runtime Environments

@latest Build Status

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)

License

ISC

About

Get a user agent string in both browser and node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.0%
  • TypeScript 16.0%