screenie
A simple tool to leverage puppeteer to take screenshots of web pages; is particularly tailored to take screenshots of individual slides in a presentation (e.g. within Spectacle)
Install
yarn add @screenie/screenie
Usage
const { screenie } = require('@screenie/screenie');
const path = require('path');
(async () => {
const screenshots = await screenie({
folder: path.join(process.cwd(), 'screenshots'),
url: 'https://example.com'
});
})();