w-tmper-docx
v1.0.4
Published
A replacer for template of docx.
Maintainers
Readme
w-tmper-docx
A replacer for template of docx.
Documentation
To view documentation or get support, visit docs.
Installation
Using npm(ES6 module):
npm i w-tmper-docxExample:
Link: [dev source code]
import wtd from './src/WTmperDocx.mjs'
let kpData = {
text: 'abc測試中文',
image: './test/image.png',
}
console.log('kpData', kpData)
let fpTmp = './test/tmp.docx'
let fpOut = `./test/report.docx`
await wtd(kpData, fpTmp, fpOut)