top-user-agents

A list of most common User Agent.

Usage no npm install needed!

<script type="module">
  import topUserAgents from 'https://cdn.skypack.dev/top-user-agents';
</script>

README

top-user-agents

Last version NPM Status

A list of most common User Agent used on Internet.

The list is auto generated, always up to date with the most common user agents.

Install

$ npm install top-user-agents --save

Usage

const userAgents = require('top-user-agents')
const uniqueRandomArray = require('unique-random-array')

console.log(userAgents[0])
// => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

const randomUserAgent = uniqueRandomArray(userAgents)
console.log(randomUserAgent())
// => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

top-user-agents © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats