🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

node-html-to-image-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-html-to-image-cli

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

1.1.0
latest
npm
Version published
Weekly downloads
71
22.41%
Maintainers
1
Weekly downloads
 
Created
Source

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 and lets 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

Without handlebars template

npx node-html-to-image-cli examples/simple.html ./image.png

With additional data passed to the template

npx node-html-to-image-cli examples/handlebars.html ./image.png --content ./examples/handlebars.json

Arguments

ArgumentDescription
htmlpath to a html file
outputpath where image should be created

Options

OptionAliasDescription
--type-ttype of image that should be generated
--transparentnonedetermine if background of the generated image should be transparent
--content-cpath to a content file with handlebars template

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

FAQs

Package last updated on 24 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts