A JavaScript library to provide the most common User Agents used on the Internet.
Install the package directly from GitHub
$ npm i --save rockacola/common-browser
Use it as a stateless function with TypeScript.
import { CommonUserAgent } from 'common-browser'
const userAgent = CommonUserAgent.getRandom()
console.log('userAgent:', userAgent)
To see more TypeScript example usages, please check out the /examples
directory.