take screenshot of a given website url
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.MD
config.js
package.json
urlscreenshot.js
utils.js
yarn.lock

README.MD

Websites screenshot cli

this scrpit is to take screenshots thought cli

Basic Installation

Clone or download this repository

git clone git@github.com:HenryTabima/websites-screenshot-cli.git

Open the porject folder and install dependencies

with npm:

npm install

with yarn:

yarn install

Usage

node urlscreenshot.js --url [url's site]

or

chmod +x urlscreenshot.js   // this is only once
./urlscreenshot.js --url [url's site]

PD: is better if you copy and paste the url from the website

The Config File

module.exports = {
  dir: './screenshots',
  screen: {
    width: 1920,
    height: 1080
  }
}

dir is to define where you want to save your screenshots.

screen is to define the width and height of the screenshot.

Dependencies