1.0.0 • Published 6 years ago

mshot-cli v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

mshot-cli

CLI to take screenshots for multiple website at one using Puppeteer.

Usage

$ npm i -g mshot-cli
    Usage
        $ mshot PATH_TO_CONFIG_FILE

    Example
        $ mshot config.json

There is only one parameter that point to your config.json file, which defines how to take screenshots.

Here a sample:

{
    "options": {
        "path": ".",
        "viewport": {
            "width": 1280,
            "height": 720
        },
        "timeout": 5000,
        "extension": "png"
    },
    "websites": [
        "petehouston.com",
        "apple.com",
        "microsoft.com"
    ]
}