2.0.1 • Published 5 years ago

secure-random-user-agent v2.0.1

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

secure-random-user-agent

Get a random user agent securely (yeah it's silly).

npm Node version Build Status JavaScript Style Guide

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

2.0.1

5 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago