Public | Automated Build

Last pushed: 7 months ago
Short Description
Puppeteer (chrome headless) CLI version to snapshot websites.
Full Description

Puppeteeer CLI

Puppeteer CLI version to snapshot websites.

Currently, the CLI is expected to run on Docker.


  • Take snapshot and save to file.
  • Take snapshot and print to console.
  • Additional CSS support to render CJK websites.


To print base64-encoded screenshot to console some websites,

docker run -it --rm yamitzky/puppeteer-cli --url

If you would like to save to file,

docker run -it --rm -v "$PWD:/tmp" yamitzky/puppeteer-cli --url --out /tmp/example.png

To render Japanese with no tofu,

docker run -it --rm -v "$PWD:/tmp" yamitzky/puppeteer-cli --url --out /tmp/example.png --delay 1000 --css '' --style 'font-family: "Noto Sans Japanese"'

Future work

  • Additional tasks such as saving innerHTML(source)
  • More sophisticated CLI options
  • npm binary
  • ESLint and Jest
Docker Pull Command
Source Repository