Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
puppeteer-mass-screenshots
Advanced tools
Readme
Prerequisites | Installation | Manual | InitOptions | StartOptions | FAQ
Puppeteer mass screenshots is a simple Puppeteer's plugin to create automatic screenshots for every new frame appears in the browser.
Unlike the regular screenshots function supplied by Puppeteer, our plugin runs on Chrome's API and doesn't affect Puppeteer's run time.
So basically by using this plugin, you'll be able to create very fast screenshots, and it won't slow your run time
In order to use this plugin:
To install the plugin to your project please use:
npm install puppeteer-mass-screenshots
You'll probably prefer to add it to your package.json file so you can use:
npm install --save-prod puppeteer-mass-screenshots
Once Puppeteer mass screenshots is installed, you can require it in your project:
const PuppeteerMassScreenshots = require('puppeteer-mass-screenshots');
In your constructor create:
const screenshots = new PuppeteerMassScreenshots();
After you have page object
await screenshots.init(page, screenshotsPath);
To start the automatic screenshots:
await screenshots.start();
To stop the automatic screenshots:
await screenshots.stop();
Important - call screenshots.stop before browser is closed.
Yes, it does.
it supports Chrome in headless / headful mode.
Yes, it does.
This plugin is based on Chrome's API,
which isn't affected by page's redirections.
No, it doesn't use the window object.
Yes.
put the page object in the init function, and the plugin will use it.
No, it won't.
We use Chrome's API only.
Check out Puppeteer video recorder
It uses our plugin, to save screenshots,
And uses ffmpeg to convert these screenshots to a video
init options - see our Init options page
start options - see our Start options page
FAQs
This package creates massive amount of screenshots automatically, using Chrome API screencast,
The npm package puppeteer-mass-screenshots receives a total of 2,618 weekly downloads. As such, puppeteer-mass-screenshots popularity was classified as popular.
We found that puppeteer-mass-screenshots demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.