Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/progm/node-html2pdf
A simple node server to create pdf files from an URL, using puppeteer. It works as standalone or with AWS Lambda.
https://github.com/progm/node-html2pdf
html2pdf nodejs pdf-generation puppeteer
Last synced: 18 days ago
JSON representation
A simple node server to create pdf files from an URL, using puppeteer. It works as standalone or with AWS Lambda.
- Host: GitHub
- URL: https://github.com/progm/node-html2pdf
- Owner: ProGM
- License: mit
- Created: 2019-06-07T10:08:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:27:28.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T04:52:11.918Z (about 1 month ago)
- Topics: html2pdf, nodejs, pdf-generation, puppeteer
- Language: TypeScript
- Size: 913 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node HTML2PDF
A simple node server to create pdf files from an URL, using puppeteer.
Written in Typescript, it works as standalone or with AWS Lambda.
### Running standalone implementation
```bash
yarn install
yarn start
```### Running Lambda implementation
```bash
yarn global add serverless
yarn install
yarn lambda
```### Deploy on lambda
```bash
serverless deploy -v // Optionally you can specify a profile with `--aws-profile profile-name`
```### Sentry
Just set the env SENTRY_DSN with your sentry url, and it's done!