ppptr
v0.0.1
Published
Take screenshot of web page with some options in minutes
Downloads
3
Readme
ppptr - Simple CLI tool and npm package just take screenshot of Web page with puppeteer in minutes
Install
If you want to use ppptr as command, install with -g
option.
npm i -g ppptr
Or if you want to use ppptr as npm package in your Node.js project, just install.
npm i ppptr
Basic Usage as command
You can use ppptr
command if you have install with -g
option.
The following command:
ppptr https://www.google.com/ --res SD
will output tmp file path of screenshot to stdout:
/tmp/https___www_google_com_.png
Check out all options
ppptr --help
Basic Usage as package
import { ppptr } from "ppptr";
const results = await ppptr(url);
// results is an array of string of tmp file path of screenshot
console.log(results);
Development
npm ci
npm run build
npm link
NODE_ENV=development ppptr https://www.google.com/ -r SD