2.0.0 • Published 3 years ago

html2image v2.0.0

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

html2image

Convert html to image(png/jpg) or pdf by puppeteer

Install

npm i -g html2image

Usage

html2image -a https://www.baidu.com

Options

  • -a, --address [value] url address
  • -f, --format [value] output file format (pdf|png|jpeg|gif)
  • -o, --output [value] output file path

Help

html2image -h

TODO

If the url address contain &, you should use encodeURIComponent to encode the url address, then pass to the html2image command

2.0.0

3 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago