moyin-html2pdf
v1.1.2
Published
a powerful html to PDF command tool use for production environment
Readme
html2pdf
A powerful html to PDF command tool use for production environment.
✨ Features
- Using Puppeteer and chrome-headless-shell to convert HTML files to PDF.
- Simple commands and clear documentation.
📦 Installation
Via npm (Recommended)
npm install -g moyin-html2pdfVia yarn
yarn global add moyin-html2pdf🚀 Quick Start
After installation, you can use it directly in your terminal:
html2pdf --helpOr, if you have multiple commands configured:
html2pdf [options] <argument>
h2p [options] <argument>📖 Usage
# Convert a html file to pdf file.
html2pdf --input sample.html --output sample.pdf
# Convert a markdown file to pdf file.
html2pdf --input sample.md --output sample.pdf
🐛 Reporting Issues
If you encounter any problems, please report them via GitHub Issues.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- This CLI tool is developed and used in production by Dochelp.cn, a help center building platform.
- Enjoy using html2pdf ! Feel free to contact us if you have any questions.
