web-snapshooter

1.0.0 • Public • Published

Webshooter

Generates PNG and PDF screenshots from websites

Quick Start

Install (Coming soon, for now, you need to download and build by yourself)

npm install -g webshooter

Take PNG screenshot

webshooter --format PNG --url https://pt.wikipedia.org/wiki/Lorem_ipsum

# With custom name
webshooter --format PNG --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --mode Visible

# Only the visible area
webshooter --format PNG --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --mode Visible

# The entire page
webshooter --format PNG --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --mode FullPage

# The entire page but sliced into separated images with same size
webshooter --format PNG --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --mode FullSplitPage

Take PDF screenshot

webshooter --format PDF --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum

# With custom paper size (More paper sizes coming soon)
webshooter --format PDF --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --pdfPapersize A4
webshooter --format PDF --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --pdfPapersize Letter

# With custom paper orientation
webshooter --format PDF --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --pdfOrientation Portrait
webshooter --format PDF --url https://pt.wikipedia.org/wiki/Lorem_ipsum --name lorem-ipsum --pdfOrientation Landscape

Readme

Keywords

none

Package Sidebar

Install

npm i web-snapshooter

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

25.2 kB

Total Files

19

Last publish

Collaborators

  • rondymesquita