0.1.11 • Published 6 years ago

pdf-template v0.1.11

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

pdf-template Build Status js-standard-style

PDF templating with mustache.js

Installation

npm install --save pdf-template

Usage

const pdfTemplate = require('pdf-template')

pdfTemplate({
  template: 'example.pdf',
  output: 'output.pdf',
  data: {
    name: 'John Doe',
    age: 26,
    email: 'johndoe@example.com',
    birthdate: '01/01/1990',
    projects: ['project1', 'project2', 'project3']
  }
}).then((res) => {
  console.log(res)
}).catch((err) => {
  console.error(err)
})

Testing

npm run test

License

MIT LICENSE.md

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin new-feature)
  5. Create new Pull Request

Crafted with <3 by amimaro

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago