← BACK

screenshot-demo

Quickly screenshot a website and save it to .png and .pdf

JavaScript ⭐ 23

Puppeteer Screenshot demo

Quickly screenshot a website and save it to .png and .pdf files.

How to run

  1. Clone the repository
  2. Run npm install in your terminal
  3. Edit screenshot.js with your chosen website (optional)
  4. Run in your terminal:
node screenshot.js https://cassidoo.co

You'll get both a PNG and a PDF of your website! You can swap out that URL at the end of the script with anything.