p5snap can be installed using NPM (Node Package Manager)
npm -g install p5snap
to start p5snap, provide a relative file path and the number of images that should be saved
p5snap <FILE-PATH> -n <NUMBER-OF-IMAGES>
for example:
p5snap ./mySketch.js -n 20
will create:
Copyright © 2020 Zach Krall.
This project is MIT licensed.