Skip to content

Instantly share code, notes, and snippets.

View scotthorn's full-sized avatar

Scott Horn scotthorn

  • Achieve Internet
  • Lexington, KY, USA
View GitHub Profile
/*
* Takes provided URL passed as argument and make full height screenshots of this page
* with several viewport widths.
*
* These viewport widths are taken from common android and iOS devices. Modify as needed.
*
* Takes an optional second argument for the path where screenshots are saved.
*
* Usage:
* $ casperjs screenshots.js http://example.com