1.0.1 • Published 6 years ago

puppeteer-trace-cli v1.0.1

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

Puppeteer trace CLI

Simple wrapper around Puppeteer to trace webpage from command line.

Usage

npm i [-g] puppeteer-trace-cli

puppeteer-trace --url 'http://perdu.com' --output ./trace.json
puppeteer-trace -u 'http://perdu.com' -o - > /tmp/trace.json
puppeteer-trace 'http://perdu.com' > trace.json

Options

  Headless screenshot with Puppeteer

    -u, --url string      URL to navigate page to. The url should include scheme, e.g. https://.

    -o, --output string   A path to write the trace file to.

    -s, --screenshots     Captures screenshots in the trace.
                          Default: false

    -w, --width number    Viewport width in pixels
                          Default: 800

    -h, --height number   Viewport height in pixels
                          Default: 600

    -?, --help            This help

See also