Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

random-user-agent

1.0.0 • Public • Published

Pick a random user agent

randomUserAgent([type]) type can be one of desktop mobile other

let randomUserAgent = require('random-user-agent');
 
randomUserAgent() // gives any random userAgent
randomUserAgent('desktop') // gives a random desktop user agent

Keywords

none

install

npm i random-user-agent

Downloadsweekly downloads

253

version

1.0.0

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability