jsreport-docxtemplater

1.4.2 • Public • Published

⚠️ This repository has been moved to the monorepo jsreport/jsreport

jsreport-docxtemplater

NPM Version Build Status jsreport recipe for creating docx word document using docxtemplater

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

Installation

npm install jsreport-docxtemplater

jsreport-core

You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('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-docxtemplater

Weekly Downloads

12

Version

1.4.2

License

MIT

Unpacked Size

35 kB

Total Files

12

Last publish

Collaborators

  • pofider
  • bjrmatos