{"_id":"@baitic/docxtemplater","_rev":"2-f0c9f3ee9994af584293a9ff0cdcccb3","name":"@baitic/docxtemplater","dist-tags":{"latest":"3.25.2"},"versions":{"3.25.2":{"name":"@baitic/docxtemplater","version":"3.25.2","author":{"name":"Edgar Hipp"},"description":"docx and pptx generator working with templates and data (like Mustache, for Word and Powerpoint documents)","contributors":[{"name":"Edgar Hipp"}],"main":"es6/docxtemplater.js","keywords":["docx","pptx","templates","generation","microsoft word","microsoft powerpoint","report"],"types":"./es6/docxtemplater.d.ts","repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"dependencies":{"@xmldom/xmldom":"^0.7.5"},"devDependencies":{"@babel/cli":"^7.15.7","@babel/core":"^7.15.5","@babel/eslint-parser":"^7.15.7","@babel/plugin-proposal-object-rest-spread":"^7.15.6","@babel/preset-env":"^7.15.6","@stryker-mutator/core":"^5.4.0","@stryker-mutator/mocha-runner":"^5.4.0","@wdio/cli":"^7.12.6","angular-expressions":"^1.1.4","babel-loader":"^8.2.2","chai":"^4.3.4","chalk":"^4.1.2","diff":"^5.0.0","envify":"^4.1.0","es6-promise":"^4.2.8","eslint":"^7.32.0","eslint_d":"^11.0.0","eslint-plugin-import":"^2.24.2","finalhandler":"^1.1.2","lodash":"^4.17.21","mkdirp":"^1.0.4","mocha":"^9.1.1","nyc":"^15.1.0","pizzip":"^3.1.1","prettier":"^2.4.1","request":"^2.88.2","rimraf":"^3.0.2","selenium-standalone":"^7.1.0","serve-static":"^1.14.1","stryker-cli":"^1.0.2","tsd":"^0.17.0","webdriverio":"^7.12.5","webpack":"^5.53.0","webpack-cli":"^4.8.0"},"license":"MIT","engines":{"node":">=0.10"},"scripts":{"generate:doc":"cd docs; rm build/ -rf ; make html","profile":"./profile.bash","preversion":"npm run test:es6 && npm run lint && FAST= npm test && rimraf build && mkdirp build && npm run browserify && npm run test:typings && npm run verifypublishsize && npm run test:browser","version":"./replace-versions-in-doc.bash","check-casing":"./check-casing.bash","compile":"npm run convertto:es5","browserify:test":"FILE=test webpack","browserify:lib":"webpack","browserify:min":"MIN=true webpack","updtr":"updtr","browserify":"npm run browserify:test && npm run browserify:lib && npm run browserify:min","convertto:es5":"rimraf js -rf && mkdirp js && npm run babel && cp es6/tests/*.xml js/tests && cp es6/*.ts js","convertto:es5:watch":"npm run babel -- --watch","test:coverage":"nyc --reporter=html --reporter=text mocha --  es6/tests/index.js","prettier":"prettier --list-different 'es6/**/!(filenames).js' '*.js' 'es6/*.ts' README.md CHANGELOG.md","prettier:fix":"prettier --write 'es6/**/!(filenames).js' '*.js' 'es6/*.ts' README.md CHANGELOG.md","lint":"eslint_d . && ./check-casing.bash && npm run prettier","lint:fix":"eslint_d . --fix && ./check-casing.bash && npm run prettier:fix","test:chrome":"BROWSER=CHROME ./webdriver.bash","test:firefox":"BROWSER=FIREFOX ./webdriver.bash","test:browser":"./webdriver.bash","babel":"babel es6 --out-dir js","mocha":"mocha --full-trace --check-leaks js/tests/index.js","test:es6":"mocha --full-trace --check-leaks es6/tests/index.js","test:es6:fast":"FAST=true mocha --full-trace --check-leaks es6/tests/index.js","test:watch":"FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js","test:es6:slow":"FAST= mocha --full-trace --check-leaks es6/tests/index.js","test":"npm run convertto:es5 && npm run mocha","test:es5":"npm test","test:typings":"cp es6/*.ts js && tsd .","test:mutations":"stryker run","verifypublishsize":"./verifypublishsize.bash"},"tsd":{"compilerOptions":{"lib":["DOM"]}},"bugs":{"url":"https://github.com/open-xml-templating/docxtemplater/issues"},"homepage":"https://github.com/open-xml-templating/docxtemplater#readme","directories":{"doc":"docs","example":"examples","test":"test"},"gitHead":"c330116fee255477b339085098d3d9b330e36e7d","_id":"@baitic/docxtemplater@3.25.2","_nodeVersion":"15.8.0","_npmVersion":"6.13.1","dist":{"integrity":"sha512-9PZOuLkF/gqZFEmtieD1sXXgjGDLcd1+kkrZACIeIo41KWUZrSSo6mfC3+DkWX6cLdDXTrnoB6kQiXnD5rNQPw==","shasum":"3c5c1a26b7376927f75d9bac4bb5506a0a137409","tarball":"https://registry.npmjs.org/@baitic/docxtemplater/-/docxtemplater-3.25.2.tgz","fileCount":65,"unpackedSize":456476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHIRCRA9TVsSAnZWagAACBUP/RbLHmTnF+VZsgwthpBl\n9sPev1xKTxTSiyAZf4uwJxenTg7k+Oc+rWSqecbACctPH90jfFFDkzfaWC1I\nv6bv2hM0tt8Sp4mPtSyNOuofR6WOT3ru3wvlM7vtYzf0ujY83tjR67N8Dcrn\nvb0pN5bHSzLTVqssk+UPM7O00nP3gge1SB4Fs+hBxZ6PVIHBkkqdlb3QKygy\n+cNa42/hHl89q0LJLpAVvBKopRPBwLO/DMaJLhqsA1FsRCJiqgYpcEeE/E0+\ngViJsjNWpClh0YyaSpDUdbHvnh8wPSHHg88rIiQSvxGQ7FXvu2LZBIbVqImH\nIf5p+kvzMfLqia9VrxjK+4aD5e9fr+QdBMSkkz7Hyo15XhuGzJB9hf432qmw\n5W2XACJJzDPKosX2FY0FPuycsObbjhvhotvhgZguazdYPVUKNshZL+wr5K6r\nawP5CR4ZJzFR3d2mDKG7m2x+eqxOfAhUHjszVpkVnynFDltLUYXZztJknlNj\ngunktSv3COtt6LcBM5td9YUuz3fbOyqD0ocoJbT9PipW44Ck7LayPTfkUNmC\nHGl6zQf2Kkrg4Gly6ajq3e5n48L2ZWd1hctE2CB5KpvfUto0Ch5i2B04KnlB\ng/2cbWNPCH0BTLKsJbkfy/sZJcP6R+ucPJuwag7Wjvn05plVdKns2xPU6iTB\ndPc0\r\n=a3mp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHSLSxuv3ZtbNxLbd4G+yFvL+MEcIDiXgQLramnoLvZQIhAJqjKTMP8vRgawFsAWiIQ65ZZZPwrsRjOaZtY0zuL1QK"}]},"_npmUser":{"name":"jhereu","email":"jhereumayo@gmail.com"},"maintainers":[{"name":"segarcialo","email":"sgarcia@baitic.com"},{"name":"jhereu","email":"jhereumayo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/docxtemplater_3.25.2_1632227544709_0.1436350916099336"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-21T12:32:24.649Z","3.25.2":"2021-09-21T12:32:24.936Z","modified":"2022-04-04T17:31:49.387Z"},"maintainers":[{"name":"segarcialo","email":"sgarcia@baitic.com"},{"name":"jhereu","email":"jhereumayo@gmail.com"}],"description":"docx and pptx generator working with templates and data (like Mustache, for Word and Powerpoint documents)","homepage":"https://github.com/open-xml-templating/docxtemplater#readme","keywords":["docx","pptx","templates","generation","microsoft word","microsoft powerpoint","report"],"repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"contributors":[{"name":"Edgar Hipp"}],"author":{"name":"Edgar Hipp"},"bugs":{"url":"https://github.com/open-xml-templating/docxtemplater/issues"},"license":"MIT","readme":"# docxtemplater\n\n[![Build Status](https://travis-ci.com/open-xml-templating/docxtemplater.svg?branch=master&style=flat)](https://travis-ci.com/open-xml-templating/docxtemplater) [![Download count](https://img.shields.io/npm/dm/docxtemplater.svg?style=flat)](https://www.npmjs.org/package/docxtemplater) [![Current tag](https://img.shields.io/npm/v/docxtemplater.svg?style=flat)](https://www.npmjs.org/package/docxtemplater) [![CDNJS version](https://img.shields.io/cdnjs/v/docxtemplater.svg)](https://cdnjs.com/libraries/docxtemplater) [![size](http://img.badgesize.io/https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js?label=size&style=flat-square)](https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js) [![gzip size](http://img.badgesize.io/https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js?compression=gzip&label=gzip%20size&style=flat-square)](https://raw.githubusercontent.com/open-xml-templating/docxtemplater-build/master/build/docxtemplater-latest.min.js)\n\n[![Browser matrix](https://saucelabs.com/browser-matrix/jsninja.svg)](https://saucelabs.com/u/jsninja)\n\n[![docxtemplater logo](https://raw.githubusercontent.com/open-xml-templating/docxtemplater/master/logo-small.png)](https://docxtemplater.com/)\n\n**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.\n\n## Features\n\n[Demo Site](https://docxtemplater.com/demo)\n\n- <a href=\"https://docxtemplater.com/demo#simple\">Replace a {placeholder} by a value</a>\n- <a href=\"https://docxtemplater.com/demo#loops\">Use loops: {#users} {name} {/users} </a>\n- <a href=\"https://docxtemplater.com/demo#loop-table\">Use loops in tables to generate columns</a>\n- <a href=\"https://docxtemplater.com/demo#conditions\">Use conditions (if users.length>3) with angular Parsing</a>\n- <a href=\"https://docxtemplater.com/demo#xml-insertion\">Insert custom XML {@rawXml} (for formatted text for example)</a>\n\n## Quickstart\n\n- [Installation in node](https://docxtemplater.readthedocs.io/en/latest/installation.html#node)\n- [Installation in the browser](https://docxtemplater.readthedocs.io/en/latest/installation.html#browser)\n- [Generate a document in node](https://docxtemplater.readthedocs.io/en/latest/generate.html#node)\n- [Generate a document in the browser](https://docxtemplater.readthedocs.io/en/latest/generate.html#browser)\n- [Generate a document in React, Angular or Vue](https://docxtemplater.readthedocs.io/en/latest/generate.html#react-angular-vue)\n\n## Documentation\n\nThe full documentation of the latest version can be found on [read the docs](http://docxtemplater.readthedocs.io/en/latest/).\n\nSee [CHANGELOG.md](CHANGELOG.md) for information about how to migrate from older versions.\n\n## Modules\n\nFunctionality can be added with modules. Here is the list of existing modules:\n\nPRO Modules developped by docxtemplater core team :\n\n- [Image module](https://docxtemplater.com/modules/image/) to add a given image with the syntax: `{%image}`.\n- [Html Module](https://docxtemplater.com/modules/html/) to insert formatted text in a docx document.\n- [XLSX Module](https://docxtemplater.com/modules/xlsx) to be able to do templating on Excel files (xlsx extension), also with loops and conditions.\n- [Chart Module](https://docxtemplater.com/modules/chart/) to replace a chart by using data from the JSON object that you give\n- [Html-Pptx Module](https://docxtemplater.com/modules/html-pptx/) to insert formatted text in a pptx document.\n- [Slides Module](https://docxtemplater.com/modules/slides/) to create multiple slides dynamically.\n- [Subtemplate Module](https://docxtemplater.com/modules/subtemplate) to include an external docx file inside a given docx file.\n- [Subsection Module](https://docxtemplater.com/modules/subsection) to include subsections (headers/footers) from an other document.\n- [Subtemplate-pptx Module](https://docxtemplater.com/modules/pptx-sub/) to include an external pptx file inside a given pptx file.\n- [Word-Run Module](https://docxtemplater.com/modules/word-run) to include raw runs (<w:r>) inside the document. This makes it possible to include styled text without having to remove the enclosing paragraph like in the {@rawXml} tag.\n- [QrCode Module](https://docxtemplater.com/modules/qrcode) to replace an image, keeping any existing properties.\n- [Error Location Module](https://docxtemplater.com/modules/error-location) to show the errors in the template with comments inside the template.\n- [Table Module](https://docxtemplater.com/modules/table) to create tables from two dimensional data.\n- [Meta Module](https://docxtemplater.com/modules/meta) to make a document readonly, add a text watermark or update the margins.\n- [Styling Module](https://docxtemplater.com/modules/styling) restyle a paragraph, a cell or a table depending on some data.\n- [Footnotes Module](https://docxtemplater.com/modules/footnotes) to be able to add footnotes to a document.\n- [Paragraph Placeholder Module](https://docxtemplater.com/modules/paragraph-placeholder) to simplify conditions that should show or hide a given paragraph.\n\n## Similar libraries\n\nThere are a few similar libraries that work with docx, here’s a list of those I know a bit about:\n\n- [docx4j](https://www.docx4java.org/trac/docx4j) : JAVA, this is probably the biggest docx library out there. There is no built in templating engine, but you can generate your docx yourself programmatically.\n- [docx](https://github.com/dolanmiu/docx) : Javascript in the browser, you can create your docx from scratch, but not with template syntax, you need to \"code your document\" in Javascript.\n- [redocx](https://github.com/nitin42/redocx) : Create Docx document from scratch, using JSX syntax, last commit on December 2018.\n- [officegen](https://github.com/Ziv-Barber/officegen) : works only server side for the moment.\n","readmeFilename":"README.md"}