Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webshot v1.0

Consistant screenshots from the command line

Requirements

Installation

  1. Clone the repository and install dependencies
$ git clone https://github.com/jjgrainger/webshot.git
$ npm install

Usage

To take a screenshot of a website (google.com), cd into the webshot folder and run the following command in the terminal.

$ node webshot.js https://google.com

This will take a screenshot and save it to /shots directory using the domain name as a filename.

Options

Additional options can be passed as flags. So to set a delay of 5 seconds, you can run the following command in the terminal.

$ node webshot.js https://google.com --delay=5000

Below are the available options

  • --delay - set a delay before taking the screenshot in milliseconds, default: 0
  • --zoom - set the page zoom in percent, default: 90
  • --width - set the width of the viewport in pixels, default: 1200
  • --height - set the height of the viewport in pixels, default: 800

Notes

Authors

Joe Grainger

About

Consistant screenshots from the command line

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages