How to use the docx.LocalPacker function in docx

To help you get started, we’ve selected a few docx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andreafeccomandi / bibisco / bibisco / app / services / DocxExporterService.js View on Github external
onend: function() {
          let exporter = new docx.LocalPacker(doc, undefined, undefined, numbering);
          exporter.pack(path + '.docx');
          if (callback) {
            callback();
          }
        }
      }, { decodeEntities: true });

docx

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

MIT
Latest version published 5 days ago

Package Health Score

83 / 100
Full package analysis