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
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
ppptr --help
import { ppptr } from "ppptr";
const results = await ppptr(url);
// results is an array of string of tmp file path of screenshot
console.log(results);
npm ci
npm run build
npm link
NODE_ENV=development ppptr https://www.google.com/ -r SD