easily generate a browser useragent
Easily generate a browser user agent!
npm install get-user-agent
const useragent = require('get-user-agent');
console.log(useragent.firefox(75));
string
Chrome user agent
string
Chrome user agent with advanced options
string
Safari user agent
string
Firefox user agent with advanced options
string
Opera user agent
string
Opera user agent with advanced options
string
Safari user agent
string
Safari user agent with advanced options
string
Chrome user agent
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
sysInfo (optional) | string |
System information |
string
Chrome user agent with advanced options
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
webkitVersion | number \ |
string |
Webkit version |
sysInfo (optional) | string |
System information |
string
Safari user agent
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
sysInfo (optional) | string |
System information |
string
Firefox user agent with advanced options
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
geckoVersion | number \ |
string |
Gecko version |
sysInfo (optional) | string |
System information |
string
Opera user agent
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
sysInfo (optional) | string |
System information |
string
Opera user agent with advanced options
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
prestoVersion | number \ |
string |
Presto version |
operaVersion | number \ |
string |
Opera version |
sysInfo (optional) | string |
System information |
string
Safari user agent
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
sysInfo (optional) | string |
System information |
string
Safari user agent with advanced options
Returns: string
- User agent
Param | Type | Description | |
---|---|---|---|
version | number \ |
string |
Browser version |
webkitBuildVersion | number \ |
string |
Webkit build version |
safariBuildVersion | number \ |
string |
Safari build version |
sysInfo (optional) | string |
System information |