screenshotron
The most aptly-named way to take screenshots of pages with Electron.
Installation
Requires Node 4+. From the command line, run
npm install -g screenshotron
Usage
From the command line, run
screenshotron example.com
✔ Generated 1 screenshot from 1 url and 1 size
screenshotron --delay 3000 example.com bananas.com
✔ Generated 2 screenshots from 2 urls and 1 size
Contributing
You first need to clone the project on your computer, and to install Node. This project uses nvm to execute a specific node version.
Install the project with:
git clone git@github.com:springload/screenshotron.git
cd screenshotron
nvm install
npm install
npm install -g eslint babel-eslint eslint-config-airbnb
./.githooks/deploy
To run the tests:
npm run test
To release a new version:
npm version minor -m "Release %s"
git push origin master
git push --tags
npm publish
Resources on automated screenshot taking
Code originally taken from https://github.com/thibaudcolas/is-js-error, and https://github.com/sindresorhus/pageres/