Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!