Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joduplessis/distil
Simple async wrapper around Handlebars & HTML to PDF. Basis for pdfasaurus.com
https://github.com/joduplessis/distil
async handlebars html-pdf javascript typescript
Last synced: 8 days ago
JSON representation
Simple async wrapper around Handlebars & HTML to PDF. Basis for pdfasaurus.com
- Host: GitHub
- URL: https://github.com/joduplessis/distil
- Owner: joduplessis
- License: mit
- Created: 2020-03-27T11:58:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T11:59:22.000Z (over 4 years ago)
- Last Synced: 2024-11-01T12:46:47.199Z (14 days ago)
- Topics: async, handlebars, html-pdf, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Distil
> Simple async wrapper around Handlebars & HTML to PDF
## Installation
```
npm i @joduplessis/distil
```## Some example usage:
```
import Distil from '@joduplessis/distil'const file = path.resolve(__dirname, '../../views/invoice.handlebars')
const buffer = await Distil(file, { invoiceId: 'IN001' })
```