Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
29th January 2021 : A security vulnerability has been found in the npm package : "angular-expressions" that could affect you if you use the angular-parser feature. You should upgrade the angular-expressions package to 1.1.2. See https://github.com/open-xml-templating/docxtemplater/issues/589 for more details.
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.
The full documentation of the latest version can be found on read the docs.
See CHANGELOG.md for information about how to migrate from older versions.
There are a few similar libraries that work with docx, here’s a list of those I know a bit about:
Functionality can be added with modules. Here is the list of existing modules:
PRO Modules developped by docxtemplater core team :
{%image}.
User-contributed modules :
{$chart}, user contributed (compatible with v2 only)
{^link}, (compatible with v2 only)