Skip to content
A cli based on node-html-to-image that generates images from HTML
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
misc
src
.gitignore
CHANGELOG.md
LICENSE
README.md
package.json
yarn.lock

README.md

Welcome to node-html-to-image-cli 👋

Version Documentation License: Apache--2.0 Twitter: yvonnickfrin

A cli based on node-html-to-image that generates images from HTML

🏠 Homepage

Description

This is cli is based on node-html-to-image. It generates an image from an HTML file. node-html-to-image provides more options like templating using Handlebars. It also let you pass down custom configuration to puppeteer which is used under the hood.

node-html-to-image-cli's demo

Prerequisites

  • node >=10

Install

This step is uneccessary if you use npx.

yarn add global node-html-to-image-cli
# or
npm install -g node-html-to-image-cli

Usage

npx node-html-to-image-cli ./index.html ./image.png

Arguments

Argument Description
html path to a html file
output path where image should be created

Options

Option Alias Description
--type -t type of image that should be generated

Related

Author

👤 FRIN Yvonnick frin.yvonnick@gmail.com

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 FRIN Yvonnick frin.yvonnick@gmail.com.
This project is Apache--2.0 licensed.


This README was generated with ❤️ by readme-md-generator

You can’t perform that action at this time.