create-express-api-pdf
v1.0.0
Published
A CLI tool to create express-js-pdf-starter-template.
Downloads
72
Maintainers
Readme
Create Express API PDF 🚀
A CLI tool to scaffold an Express.js PDF generator application using EJS and wkhtmlpdf. This package allows you to quickly set up a new project that can generate PDFs from HTML templates.
Features 🌟
- Easy project setup using a command line interface
- Clones a starter Express.js PDF generation project from GitHub
- Prompts for the project name or accepts it as a command line argument
- Uses EJS for templating and wkhtmlpdf for PDF generation
Installation 💻
You can use npx
to run this package directly without needing to install it globally:
npx create-express-api-pdf
Or you can install globally:
npm install -g create-express-api-pdf
To create a new Express API PDF project, run the following command:
create-express-api-pdf
You will be prompted to enter a project name. Alternatively, you can specify the project name directly:
create-express-api-pdf my-new-project
This command will clone the starter template from GitHub into a directory with the specified project name.
Getting Started ⚡
After creating your project, navigate to the project directory and install the dependencies:
cd your-project-name
npm install
npm start
Your Express application will be up and running, ready to generate PDFs!
Contributing 🤝
Contributions are welcome! If you have suggestions or improvements, please create an issue or submit a pull request.
License 📄
This project is licensed under the MIT License - see the LICENSE file for details.
Author 👤
Lalit - https://github.com/khulalit