/user-agent-array

An array of user agent strings.

Primary LanguageJavaScriptMIT LicenseMIT

user-agent-array-ts

An array of user agent strings, typescript supported.

npm Node version Build Status JavaScript Style Guide

Install

$ npm i user-agent-array-ts

or

$ yarn add user-agent-array-ts

Usage

import { userAgents, randomUserAgent } from "user-agent-array-ts";
// or in JS
// const { userAgents, randomUserAgent } = require("user-agent-array-ts");

// List all user agents
console.log(userAgents);

// Generate random user agent
console.log(randomUserAgent);

API

const { randomUserAgent } = require('user-agent-array-ts')

Exports a random user agent string.

const { userAgents } = require('user-agent-array-ts')

Exports an array of user agent strings.

Kudos

This data was extracted from random-http-useragent.

License

MIT