secure-random-user-agent
v2.0.1
Published
Get a random user agent securely (yeah it's silly).
Downloads
32
Readme
secure-random-user-agent
Get a random user agent securely (yeah it's silly).
Install
$ npm i secure-random-user-agent -S
Usage
const agent = require('secure-random-user-agent')
console.log(agent())
console.log(agent())
console.log(agent())
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101102 Firefox/3.6.12
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.2.8) Gecko/20100725 Gentoo Firefox/3.6.8
Mozilla/5.0 (X11; U; Linux; en-US; rv:1.9.1.11) Gecko/20100720 Firefox/3.5.11
API
const agent = require('secure-random-user-agent')
Exports a single function which returns a random user agent. Uses slump
under the hood, which in turn is based on sodium-universal
. Works in node.js and in the browser.
License
MIT