All Projects → pastelsky → useragent-generator

pastelsky / useragent-generator

Licence: other
Easily generate correct user-agent strings for popular browsers

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to useragent-generator

browserslist-generator
A library that makes generating and validating Browserslists a breeze!
Stars: ✭ 77 (+24.19%)
Mutual labels:  user-agent, useragent
Fake Useragent
A wide variety of random useragents
Stars: ✭ 253 (+308.06%)
Mutual labels:  fake, useragent
mkjson
A commandline tool to generate static or random JSON records
Stars: ✭ 16 (-74.19%)
Mutual labels:  fake, faker-generator
User agent
HTTP User Agent parser for the Go programming language.
Stars: ✭ 578 (+832.26%)
Mutual labels:  user-agent, useragent
Ng Device Detector
Angular module to detect OS / Browser / Device
Stars: ✭ 243 (+291.94%)
Mutual labels:  user-agent, useragent
uainfer
Infer the user agent from its User Agent string
Stars: ✭ 21 (-66.13%)
Mutual labels:  user-agent, useragent
Faker.js
generate massive amounts of realistic fake data in Node.js and the browser
Stars: ✭ 34,329 (+55269.35%)
Mutual labels:  fake, faker-generator
bots-zoo
No description or website provided.
Stars: ✭ 59 (-4.84%)
Mutual labels:  user-agent, useragent
Browser.php
A PHP Class to detect a user's Browser. This encapsulation provides a breakdown of the browser and the version of the browser using the browser's user-agent string. This is not a guaranteed solution but provides an overall accurate way to detect what browser a user is using.
Stars: ✭ 546 (+780.65%)
Mutual labels:  user-agent, useragent
React Device Detect
Detect device, and render view according to detected device type.
Stars: ✭ 1,145 (+1746.77%)
Mutual labels:  user-agent, useragent
Device Detector Js
A precise user agent parser and device detector written in TypeScript
Stars: ✭ 193 (+211.29%)
Mutual labels:  user-agent
Mojo
✨ Mojolicious - Perl real-time web framework
Stars: ✭ 2,298 (+3606.45%)
Mutual labels:  user-agent
fakesudo
sudo almost as fake as your ma
Stars: ✭ 15 (-75.81%)
Mutual labels:  fake
FakeSms
一个短信作弊器,可以在没有接受到短信时在收件箱中伪造短信
Stars: ✭ 28 (-54.84%)
Mutual labels:  fake
Browser
Do some browser detection with Ruby. Includes ActionController integration.
Stars: ✭ 2,263 (+3550%)
Mutual labels:  user-agent
cloudflare-block-bad-bot-ruleset
🚦 Block malicious crawlers with Cloudflare Firewall Rules
Stars: ✭ 178 (+187.1%)
Mutual labels:  user-agent
Device Detector
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
Stars: ✭ 2,106 (+3296.77%)
Mutual labels:  user-agent
React Useragent
Integrate user-agent detection in an idiomatic React way
Stars: ✭ 154 (+148.39%)
Mutual labels:  user-agent
Devicedetector.net
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
Stars: ✭ 144 (+132.26%)
Mutual labels:  user-agent
react-fake-tweet
React renderer for tweets.
Stars: ✭ 33 (-46.77%)
Mutual labels:  fake

User Agent Generator

Travis npm

Easily generate accurate user-agent strings for popular browsers.

Installing

npm install useragent-generator

Usage

const ua = require('useragent-generator')
// ...

Table of Contents

Chrome

Chromium

Firefox

Safari

Internet Explorer

Microsoft Edge

Search Engines

Chrome

ua.chrome(options)

Examples
ua.chrome(60)
ua.chrome('61.0.0')
ua.chrome({ version: '61.0.0', os: 'Windows NT 6.3' })
Param Type Default Value
options.version string
options.os string Windows NT 6.4 (Windows 10)

ua.chrome.androidPhone(options) / ua.chrome.androidTablet(options)

Examples
ua.chrome.androidPhone(60)
ua.chrome.androidPhone('61.0.0')
ua.chrome.androidPhone({ version: '61.0.0', androidVersion: '6.2.1', device: 'Nexus 6' })

ua.chrome.androidTablet(60)
ua.chrome.androidTablet('61.0.0')
ua.chrome.androidTablet({ version: '61.0.0', androidVersion: '6.2.1', device: 'SM-T210' })
Param Type Default Value
options.version string
options.androidVersion string 7.0.0 (Nougat)
options.device string Pixel (Phone) / Pixel C (Tablet)

ua.chrome.iOS(options)

Examples
ua.chrome.iOS(10) // iOS version
ua.chrome.iOS('10.0.1') // iOS version
ua.chrome.iOS({ iOSVersion: '10.0.1', iOSVersion: '62.1.0', device: 'iPad' })
Param Type Default Value
options.iOSVersion string
options.chromeVersion string 60.0.0.0
options.device string iPhone

ua.chrome.androidWebview(options)

Examples
ua.chrome.androidWebview(4) // Android OS version
ua.chrome.androidWebview('4.4') // Android OS version
ua.chrome.androidWebview({ androidVersion: '5.0.0', chromeVersion: '60.1.0', device: 'Nexus 6' })
Param Type Default Value
options.androidVersion string
options.chromeVersion string 60.0.0.0 (applicable only for Android 4.4 (Kitkat) and above)
options.device string Pixel

ua.chrome.chromecast(options)

Example
ua.chrome.chromecast(62) 
ua.chrome.chromecast('62.1.0') // Android OS version
ua.chrome.chromecast({ version: '62.1.0' })
Param Type Default Value
options.version string

Chromium

ua.chromium(options)

Same as ua.chrome

Firefox

ua.firefox(options)

Examples
ua.firefox(52) 
ua.firefox('52.4') 
ua.firefox({ version: '53.4.1', os: 'Windows NT 6.3' })
Param Type Default Value
options.version string
options.os string Windows NT 6.4 (Windows 10)

ua.firefox.androidPhone(options) / ua.firefox.androidTablet(options)

Examples
ua.firefox.androidPhone(52)
ua.firefox.androidPhone('52.4')
ua.firefox.androidPhone({ version: '52.4.1', androidVersion: '6.2.1', device: 'Nexus 6' })

ua.chrome.androidTablet(60)
ua.chrome.androidTablet('61.0.0')
ua.chrome.androidTablet({ version: '52.4.1', androidVersion: '6.2.1', device: 'SM-T210' })
Param Type Default Value
options.version string
options.androidVersion string 7.0.0 (Nougat)
options.device string Pixel (Phone) / Pixel C (Tablet)

ua.firefox.iOS(options)

Examples
ua.firefox.iOS(10) // iOS version
ua.firefox.iOS('10.0.1') // iOS version
ua.firefox.iOS({ iOSVersion: '10.0.1', device: 'iPad' })
Param Type Default Value
options.iOSVersion string
options.device string iPhone

Safari

ua.safari(options)

Examples
ua.safari(10) 
ua.safari('10.1.0') 
ua.safari({ version: '10.3.1', os: 'Macintosh; Intel Mac OS X 10_11' })
Param Type Default Value
options.version string
options.os string Macintosh; Intel Mac OS X 10_11 (Mac OS X El Capitan)

ua.safari.iOS(options)

Examples
ua.safari.iOS(10) // iOS version
ua.safari.iOS('10.0.1') // iOS version
ua.safari.iOS({ iOSVersion: '10.0.1', safariVersion: '10.3.0', device: 'iPad' })
Param Type Default Value
options.iOSVersion string
options.safariVersion string (equal to iOSversion)
options.device string iPhone

ua.safari.iOSWebview(options)

Examples
ua.safari.iOSWebview(10) // iOS version
ua.safari.iOSWebview('10.0.1') // iOS version
ua.safari.iOSWebview({ iOSVersion: '10.0.1', safariVersion: '10.3.0', device: 'iPad' })
Param Type Default Value
options.iOSVersion string
options.safariVersion string (equal to iOSversion)
options.device string iPhone

Internet Explorer

ua.ie(options)

Examples
ua.ie(9) 
ua.ie('9.0.1') 
ua.ie({ version: '9.0.1', os: 'Windows NT 6.3' })
Param Type Default Value
options.version string
options.os string Windows NT 6.4 (Windows 10)

ua.ie.windowsPhone(options)

Examples
ua.ie(9) 
ua.ie('9.0.1') 
ua.ie({ version: '9.0.1', os: 'Lumia 625' })
Param Type Default Value
options.version string
options.device string Lumia 630

Microsoft Edge

ua.edge(options)

Examples
ua.edge(12) 
ua.edge('12.0.1') 
ua.edge({ version: '12.0.1', chromeVersion: '62.0.1', os: 'Windows NT 6.3' })
Param Type Default Value
options.version string
options.chromeVersion string 52.0.0.0
options.os string Windows NT 6.4 (Windows 10)

Search Engines

Examples
ua.googleBot()
ua.bingBot()
ua.yahooBot()

ua.googleBot('2.0')
ua.bingBot('2.1')

ua.googleBot(options) — GoogleBot

Param Type Default Value
options.version string (optional) '2.1'

ua.bingBot(options) — BingBot

Param Type Default Value
options.version string (optional) '2.0'

ua.yahooBot() — YahooBot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].