surfer-agents

1.0.0 • Public • Published

surfer-agents

Collection of the most popular browsers (user-agents) and devices

Install

nnpm i --save-dev surfer-agents

Example usage

const agentsManager = require('surfer-agents');
const agent = agentsManager.getPlaywrightAgent({isMobile: false, browser: 'chrome', os: 'windows', version: 87});

/* agent = {
  browser: 'chrome',
  defaultBrowserType: 'chromium',
  userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36',
  deviceScaleFactor: 1,
  isMobile: false,
  hasTouch: false,
  viewport: { width: 1920, height: 1200 }
}*/

Update & Build

npm run build
npm run test

Package Sidebar

Install

npm i surfer-agents

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Unpacked Size

56.9 kB

Total Files

10

Last publish

Collaborators

  • sorbing