{"id":39622473,"url":"https://github.com/ooxml-tools/file","last_synced_at":"2026-01-18T08:28:43.350Z","repository":{"id":274508334,"uuid":"825271706","full_name":"ooxml-tools/file","owner":"ooxml-tools","description":"Inspect Office Open XML files in nodejs/browser","archived":false,"fork":false,"pushed_at":"2025-12-12T13:15:32.000Z","size":254,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T01:17:38.607Z","etag":null,"topics":["docx","ooxml","pptx","xlsx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ooxml-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-07T10:15:15.000Z","updated_at":"2025-12-12T13:15:36.000Z","dependencies_parsed_at":"2025-01-27T18:50:23.719Z","dependency_job_id":"6f8f630f-bd7f-4cc5-9bd3-be6de1a0c657","html_url":"https://github.com/ooxml-tools/file","commit_stats":null,"previous_names":["ooxml-tools/file"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/ooxml-tools/file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooxml-tools%2Ffile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooxml-tools%2Ffile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooxml-tools%2Ffile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooxml-tools%2Ffile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooxml-tools","download_url":"https://codeload.github.com/ooxml-tools/file/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooxml-tools%2Ffile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","ooxml","pptx","xlsx"],"created_at":"2026-01-18T08:28:43.289Z","updated_at":"2026-01-18T08:28:43.343Z","avatar_url":"https://github.com/ooxml-tools.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\n    \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://ooxml-tools.github.io/design/images/file-dark.png\"\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://ooxml-tools.github.io/design/images/file-light.png\"\u003e\n        \u003cimg alt=\"@ooxml-tools/file\" height=\"56\" src=\"https://ooxml-tools.github.io/design/images/file-light.png\"\u003e\n    \u003c/picture\u003e\n\u003c/h1\u003e\n\nRead/write Office Open XML files in nodejs/browser.\n\nSupport for reading and writing to\n\n- ✅ `.docx` — [WordprocessingML](http://officeopenxml.com/anatomyofOOXML.php)\n- ✅ `.xlsx` — [SpreadsheetML](http://officeopenxml.com/anatomyofOOXML-xlsx.php) (coming soon)\n- 👷 `.pptx` — [PresentationML](http://officeopenxml.com/anatomyofOOXML-pptx.php) (coming soon)\n\n## Usage\n\nThe module accepts a [JSZip](https://github.com/Stuk/jszip) instance and adds some additional functionality\n\n```js\nimport { open, openAsArrayBuffer } from \"@ooxml-tools/file\";\n\nawait zip.loadAsync(openAsArrayBuffer(docxpath));\nconst doc = open(\"docx\", zip);\nconsole.log(await docx.list());\n```\n\n## CLI\n\n```bash\n# ooxml-file \u003ccommand\u003e [args]\n#\n# Commands:\n#   formats                      list valid formats\n#   init \u003cdocxpath\u003e              initializes a blank file (docx)\n#   pack \u003cdocxpath\u003e \u003cdirpath\u003e    pack directory to docx file\n#   unpack \u003cdocxpath\u003e \u003cdirpath\u003e  unpack docx to a directory\n#   list \u003cdocxpath\u003e              list files in docx\n#   read \u003cdocxpath\u003e \u003cfilepath\u003e   read file inside docx to sdtout\n#   write \u003cdocxpath\u003e \u003cfilepath\u003e  create/override file in docx\n#\n# Options:\n#   --version  Show version number                                       [boolean]\n#   --help     Show help                                                 [boolean]\n#\n# Examples:\n#   ooxml-file init ./test.docx\n#   ooxml-file unpack ./test.docx test.docx.unpacked\n#   ooxml-file pack ./test.docx test.docx.unpacked\n#   ooxml-file list ./test.docx\n#   ooxml-file read ./test.docx word/document.xml\n#   ooxml-file write ./test.docx word/document.xml \u003c input.xml\n```\n\n## CI\n\n[![codecov](https://codecov.io/gh/ooxml-tools/file/graph/badge.svg?token=TZ6IV00CPW)](https://codecov.io/gh/ooxml-tools/file)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooxml-tools%2Ffile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooxml-tools%2Ffile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooxml-tools%2Ffile/lists"}