ppptr
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ppptr

Weekly Downloads

1

Version

0.0.1

License

WTFPL

Unpacked Size

17.5 kB

Total Files

10

Last publish

Collaborators

  • yuiseki