1.4.2 • Published 3 years ago

jsreport-docxtemplater v1.4.2

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

⚠️ 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'
    }
  }
)
1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago