Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuiseki/ppptr
Simple CLI tool and npm package just take screenshot of Web page with puppeteer in minutes
https://github.com/yuiseki/ppptr
nodejs npm npm-package puppeteer screenshot typescript
Last synced: 19 days ago
JSON representation
Simple CLI tool and npm package just take screenshot of Web page with puppeteer in minutes
- Host: GitHub
- URL: https://github.com/yuiseki/ppptr
- Owner: yuiseki
- License: wtfpl
- Created: 2022-01-09T05:06:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T00:13:33.000Z (7 months ago)
- Last Synced: 2024-06-20T12:57:56.211Z (7 months ago)
- Topics: nodejs, npm, npm-package, puppeteer, screenshot, typescript
- Language: TypeScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.
```bash
npm i -g ppptr
```Or if you want to use ppptr as npm package in your Node.js project, just install.
```bash
npm i ppptr
```## Basic Usage as command
You can use `ppptr` command if you have install with `-g` option.
The following command:
```bash
ppptr https://www.google.com/ --res SD
```will output tmp file path of screenshot to stdout:
```bash
/tmp/https___www_google_com_.png
```### Check out all options
```bash
ppptr --help
```## Basic Usage as package
```typescript
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
```bash
npm ci
npm run build
npm link
NODE_ENV=development ppptr https://www.google.com/ -r SD
```