docx-builder
An NPM module for creating and/or merging DOCX files.
How to install
Using npm do:
npm install docx-builder
View in npm
Example
var builder = ;var docx = ;//SET THE HEADERdocx;docx;docx;//SET THE FOOTERdocx;docx;docx;//COMMON OPERATIONSdocx;docx;docx;docx;docx;docx;docx;docx;docx;docx;docx;docx;//INSERT A TABLEdocx;docx;docx;docx;docx;docx;docx;docx;docx;docx;docx;docx;//INSERT EXTERNAL FILESdocx;docx;docx;//SAVE THE DOCX FILEdocx;
Merging .docx files
A common requirement is to merge two or more .docx files into one. For that, just call
insertDocxSync
or insertDocx
to append the content of your .docx files.
var builder = ;var docx = ;//You can also do this asynchronously using the insertDocx method.docx;docx;docx;//SAVING THE DOCX FILEdocx;