Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@recordreplay/puppeteer-config

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@recordreplay/puppeteer-config

Configuration utilities for using the Replay browsers with puppeteer

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
7
Weekly downloads
 
Created
Source

@recordreplay/puppeteer-config

Provides utilities to support using Replay with Puppeteer

Exports

  • getExecutablePath(browserName: string) - Returns the path to the replay browser for the given browserName: only "chromium" is currently supported. If browserName isn't supported on the current platform, undefined is returned.
  • devices - Object of configurations suitable for using with @puppeteer/test. Currently only supports a "Replay Chromium" configuration. If the configuration isn't supported on the current platform, a warning is emitted and the executablePath will be undefined.

Using standalone

If you are using puppeteer (rather than @recordreplay/puppeteer), you can configure it to use the Replay browser by passing in the executablePath to launch().

const puppeteer = require("puppeteer");
const { getExecutablePath } = require("@recordreplay/puppeteer-config");

(async () => {
	const browser = await puppeteer.launch({
		headless: false,
		executablePath: getExecutablePath("chromium"),
	});
	const page = await browser.newPage();
	await page.goto("https://replay.io");
	await page.screenshot({ path: "replay.png" });

	await page.close();
	await browser.close();
})();

FAQs

Package last updated on 04 Mar 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc