html-to-docx - npm
https://www.npmjs.com/package/html-to-docx?activeTab=readmehtml-to-docx earlier used to use libtidy to clean up the html before parsing, but had to remove it since it was causing so many dependency issues due to node-gyp. Disclaimer Even though there is an instance of html-to-docx running in production, please ensure that it covers all the cases that you might be encountering usually, since this is not a complete solution.
docx - Generate .docx documents with JavaScript
https://docx.js.orgGenerate .docx documents with JavaScript. Easily generate .docx files with JS/TS. Works for Node and on the Browser. Simple, declarative API; 60+ usage examples; Battle tested, mature, 99%+ coverage; GitHub Get Started. docx. Welcome Installation npm install --save docx. Then you can require or import as usual: const docx = require ("docx");
docx
https://docx.js.orgGenerate .docx documents with JavaScript. ... Easily generate .docx files with JS/TS. Works for Node and on the Browser. 100 ... npm install --save docx
DOCX | npm.io
https://npm.io/search/keyword:DOCXofficegen. Office Open XML Generator using Node.js streams. Supporting Microsoft Office 2007 and later Word (docx), PowerPoint (pptx,ppsx) and Excell (xlsx). This module is for all frameworks and environments. No need for any commandline tool - this module is doing. officegen office microsoft 2007 word powerpoint excel docx pptx ppsx.
docxtemplater - npm
https://www.npmjs.com/package/docxtemplaterdocxtemplater. docxtemplater is a library to generate docx/pptx documents from a docx/pptx template. It can replace {placeholders} with data and also supports loops and conditions. The templates can be edited by non-programmers, for example your clients.