html2image

2.0.0 • Public • Published

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

/html2image/

    Package Sidebar

    Install

    npm i html2image

    Weekly Downloads

    32

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    5.01 kB

    Total Files

    9

    Last publish

    Collaborators

    • huang.xinghui