npm.io
1.0.0 • Published 8 years agoCLI

mshot-cli

Licence
MIT
Version
1.0.0
Deps
2
Size
3 kB
Vulns
0
Weekly
0
Stars
1

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"
    ]
}

Keywords