webshooter

0.0.5 • Public • Published

Webshooter

Generates PNG and PDF screenshots from websites

Quick Start

Install

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 webshooter

Weekly Downloads

2

Version

0.0.5

License

ISC

Unpacked Size

12.8 kB

Total Files

15

Last publish

Collaborators

  • rondymesquita