Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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' })
```