{"id":18812579,"url":"https://github.com/jsreport/jsreport-docxtemplater","last_synced_at":"2025-04-13T21:24:54.119Z","repository":{"id":57286253,"uuid":"158827571","full_name":"jsreport/jsreport-docxtemplater","owner":"jsreport","description":"Recipe using docxtemplater to create docx files","archived":false,"fork":false,"pushed_at":"2021-10-12T19:12:56.000Z","size":435,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T11:43:35.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jsreport.net","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsreport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-23T12:06:09.000Z","updated_at":"2024-11-29T02:15:33.000Z","dependencies_parsed_at":"2022-09-09T23:11:49.540Z","dependency_job_id":null,"html_url":"https://github.com/jsreport/jsreport-docxtemplater","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-docxtemplater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-docxtemplater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-docxtemplater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-docxtemplater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsreport","download_url":"https://codeload.github.com/jsreport/jsreport-docxtemplater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431578,"owners_count":21102222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T23:34:12.724Z","updated_at":"2025-04-13T21:24:54.097Z","avatar_url":"https://github.com/jsreport.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**⚠️ This repository has been moved to the monorepo [jsreport/jsreport](https://github.com/jsreport/jsreport)**\r\n--\r\n\r\n# jsreport-docxtemplater\r\n[![NPM Version](http://img.shields.io/npm/v/jsreport-docxtemplater.svg?style=flat-square)](https://npmjs.com/package/jsreport-docxtemplater)\r\n[![Build Status](https://travis-ci.org/jsreport/jsreport-docxtemplater.png?branch=master)](https://travis-ci.org/jsreport/jsreport-docxtemplater)\r\njsreport recipe for creating docx word document using [docxtemplater](https://docxtemplater.readthedocs.io/en/latest/)\r\n\r\nSee https://jsreport.net/learn/docxtemplater\r\n\r\n## Installation\r\n\r\n\u003e **npm install jsreport-docxtemplater**\r\n\r\n\r\n## jsreport-core\r\nYou can apply this extension also manually to [jsreport-core](https://github.com/jsreport/jsreport-core)\r\n\r\n```js\r\nvar jsreport = require('jsreport-core')()\r\njsreport.use(require('jsreport-docxtemplater')())\r\n\r\nconst result = await reporter.render({\r\n  template: {\r\n      engine: 'none',\r\n      recipe: 'docxtemplater',\r\n      docxtemplater: {\r\n        templateAsset: {\r\n          content: fs.readFileSync(path.join(__dirname, 'template.docx'))\r\n        }\r\n      }\r\n    },\r\n    data: {\r\n      name: 'John'\r\n    }\r\n  }\r\n)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-docxtemplater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsreport%2Fjsreport-docxtemplater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-docxtemplater/lists"}