rockacola / common-browser

A JavaScript library to provide most common User Agent used on Internet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Common Browser

A JavaScript library to provide the most common User Agents used on the Internet.

Installation

Install the package directly from GitHub

$ npm i --save rockacola/common-browser

Quick Start

Use it as a stateless function with TypeScript.

Get random user agent string

import { CommonUserAgent } from 'common-browser'

const userAgent = CommonUserAgent.getRandom()
console.log('userAgent:', userAgent)

To see more TypeScript example usages, please check out the /examples directory.

About

A JavaScript library to provide most common User Agent used on Internet.

License:MIT License


Languages

Language:TypeScript 94.9%Language:JavaScript 5.1%