Socket
Socket
Sign inDemoInstall

surfer-agents

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

surfer-agents

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


Version published
Maintainers
1
Weekly downloads
1

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 14 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc