Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@replayio/puppeteer
Advanced tools
Configuration utilities for using the Replay browsers with puppeteer
Provides utilities to support using Replay with Puppeteer
Use with replayio/action-upload to automatically upload replays of puppeteer scripts. Check out our documentation here.
Exports
getExecutablePath()
- Returns the path to the replay chromium browser.getMetadataFilePath(workerIndex: number = 0)
- Returns the path of a worker-specific metadata file keyed by the workerIndex
. The file path will be within the RECORD_REPLAY_DIRECTORY
.You can add metadata to your puppeteer recordings using either the RECORD_REPLAY_METADATA
or RECORD_REPLAY_METADATA_FILE
environment variable. If both are set, RECORD_REPLAY_METADATA_FILE
takes precedence.
Currently, this metadata is only available locally except for
title
RECORD_REPLAY_METADATA_FILE
- The path to a file containing JSON-formatted metadataRECORD_REPLAY_METADATA
- JSON-formatted metadata stringconst puppeteer = require("puppeteer");
const { getExecutablePath } = require("@replayio/puppeteer");
(async () => {
const browser = await puppeteer.launch({
headless: false,
executablePath: getExecutablePath(),
});
const page = await browser.newPage();
await page.goto("https://replay.io");
await page.screenshot({ path: "replay.png" });
await page.close();
await browser.close();
})();
FAQs
Configuration utilities for using the Replay browsers with puppeteer
We found that @replayio/puppeteer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.