{"id":20268371,"url":"https://github.com/zuck/jsdocx","last_synced_at":"2025-04-11T03:39:39.773Z","repository":{"id":18279660,"uuid":"83904922","full_name":"zuck/jsdocx","owner":"zuck","description":"Generate .docx files from JS","archived":false,"fork":false,"pushed_at":"2023-03-01T20:19:32.000Z","size":2779,"stargazers_count":19,"open_issues_count":9,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-13T02:20:29.135Z","etag":null,"topics":["docx","js","msoffice","word"],"latest_commit_sha":null,"homepage":"https://zuck.github.io/jsdocx","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/zuck.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-04T15:52:02.000Z","updated_at":"2024-06-19T20:03:43.860Z","dependencies_parsed_at":"2024-06-19T20:03:36.366Z","dependency_job_id":"e5a03343-4fac-4e5c-b62d-fddfe206bbd9","html_url":"https://github.com/zuck/jsdocx","commit_stats":{"total_commits":114,"total_committers":2,"mean_commits":57.0,"dds":0.07017543859649122,"last_synced_commit":"9030ddf05e48a5dac1d3d75d5b60645ff835cb77"},"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fjsdocx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fjsdocx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fjsdocx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuck%2Fjsdocx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuck","download_url":"https://codeload.github.com/zuck/jsdocx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248338967,"owners_count":21087210,"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":["docx","js","msoffice","word"],"created_at":"2024-11-14T12:18:07.237Z","updated_at":"2025-04-11T03:39:39.753Z","avatar_url":"https://github.com/zuck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![jsdocx](https://cdn.rawgit.com/zuck/jsdocx/b70fc554/jsdocx.svg)\n\n# jsdocx\n\n\u003e Generate .docx files from JS\n\n[![Node.js CI](https://github.com/zuck/jsdocx/actions/workflows/node.js.yml/badge.svg)](https://github.com/zuck/jsdocx/actions/workflows/node.js.yml)\n\n## Demo\n\nhttps://zuck.github.io/jsdocx\n\n## Install\n\n**Node**\n```bash\n$ npm install jsdocx\n```\n\n**Browser**\n```html\n\u003cscript src=\"https://unpkg.com/jsdocx\"\u003e\u003c/script\u003e\n```\n\n## Build\n\n```bash\n$ git clone https://github.com/zuck/jsdocx.git\n$ cd jsdocx\n$ npm install\n$ npm run build\n```\n\n## Test\n\n```bash\n$ npm test\n```\n\n## How to use\n\n```js\nimport * as jsdocx from 'jsdocx'\n\n// ES5: var jsdocx = require('jsdocx')\n\nlet doc = new jsdocx.Document()\nlet p = doc.addParagraph()\np.addRun().addText('Hello World!')\np.addFormat().addHAlignment().setVal('center')\ndoc.generate().then((content) =\u003e {\n  // e.g. saveAs(content, 'hello.docx')\n})\n```\n\n## Reference\n\n- http://officeopenxml.com/anatomyofOOXML.php\n- https://gist.github.com/felipeochoa/81d8fa27901e8222c6ffbeb165a85acc\n\n## License\n\nThe [MIT License](./LICENSE) (MIT)\n\nCopyright (c) Emanuele Bertoldi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuck%2Fjsdocx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuck%2Fjsdocx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuck%2Fjsdocx/lists"}