Generate .docx files from JS
https://zuck.github.io/jsdocx-demo/
$ npm install jsdocx
$ git clone https://github.com/zuck/jsdocx.git
$ cd jsdocx
$ npm install
$ npm run build
import jsdocx from 'jsdocx'
let doc = new jsdocx.Document()
let p = doc.addParagraph()
p.addRun().addText('Hello World!')
p.addFormat().addHAlignment().setVal('center')
doc.generate().then((content) => {
// e.g. saveAs(content, 'hello.docx')
})
The MIT License (MIT)
Copyright (c) 2017 Emanuele Bertoldi