@prokopschield/website-screenshot
Installation
$ yarn add @prokopschield/website-screenshot
Usage
import { screenshot } from '@prokopschield/website-screenshot';
const preview = await screenshot(
'url',
[
],
{
}
);
preview.error;
preview.screenshots;
preview.screenshots.get('1920x1080');
preview.URLs;
preview.load_time_ms;
preview.size;
preview.html;
preview.resources;
Installation (for cli usage)
Please note you must be root (Unix/GNU) or administrator (Windows)
# yarn global add @prokopschield/website-screenshot
# npm i -g @prokopschield/website-screenshot
Usage (cli)
$ website-screenshot PAGE [[-r] resolution] [[-f] format] [[-q] quality] >FILENAME