Get a screenshot of a website from the command line
Made with Puppeteer and Commander.
- Options
npm install -g website-preview-tool
and then you can run it by doing
website-preview-tool website <link>
npx website-preview-tool website <link>
You need to add https://
or http://
-o <output>
- Set the name of the screenshot output. The default is website_preview.png
-h <number_of_pixels>
- Set the height of the website. The default is 1920
.
-w <number_of_pixels>
- Set the width of the website. The default is 1080
.