secure-random-user-agent

2.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i secure-random-user-agent

Weekly Downloads

10

Version

2.0.1

License

MIT

Unpacked Size

3.6 kB

Total Files

6

Last publish

Collaborators

  • ralphtheninja