0.0.1 • Published 5 years ago

pdf101 v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

pdf101 :zap:

Build Status

Simply a wrapper to generate pdf in one line. Not very useful hehe.

Using with just a html

const pdf101 = require('pdf101');

const myHtml = '<h1>Hello World</h1>';
const response = await pdf101.html2pdf(myHtml);

Using with variables

Note: pdf101 rely on handlebar for templates. So you template should be just like in handlebar.

const pdf101 = require('pdf101');

const template = '<h1>Hello {{ name }}</h1>';
const response = await pdf101.html2pdf(template, { name: 'World'});

0.0.1

5 years ago