@jsreport/jsreport-docxtemplater

4.1.0 • Public • Published

@jsreport/jsreport-docxtemplater

NPM Version jsreport recipe for creating docx word document using docxtemplater

See https://jsreport.net/learn/docxtemplater

Installation

npm install @jsreport/jsreport-docxtemplater

jsreport-core

You can apply this extension also manually to jsreport-core

const jsreport = require('@jsreport/jsreport-core')()
jsreport.use(require('@jsreport/jsreport-docxtemplater')())

const result = await reporter.render({
  template: {
      engine: 'none',
      recipe: 'docxtemplater',
      docxtemplater: {
        templateAsset: {
          content: fs.readFileSync(path.join(__dirname, 'template.docx'))
        }
      }
    },
    data: {
      name: 'John'
    }
  }
)

Readme

Keywords

Package Sidebar

Install

npm i @jsreport/jsreport-docxtemplater

Weekly Downloads

27

Version

4.1.0

License

MIT

Unpacked Size

31.3 kB

Total Files

12

Last publish

Collaborators

  • pofider
  • bjrmatos