pdf101

0.0.1 • Public • Published

pdf101 ⚡

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

Readme

Keywords

Package Sidebar

Install

npm i pdf101

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

69.3 kB

Total Files

29

Last publish

Collaborators

  • danniel