{"_id":"@dornick/parsers-office","name":"@dornick/parsers-office","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dornick/parsers-office","version":"0.1.0","description":"Lazy DOCX and XLSX/CSV parsers for Dornick. Uses mammoth + SheetJS in the browser.","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","size":"size-limit"},"dependencies":{"@dornick/capabilities":"0.1.0","@dornick/parsers":"0.1.0","mammoth":"^1.8.0","xlsx":"https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"},"devDependencies":{"@size-limit/file":"^11.1.6","size-limit":"^11.1.6","tsup":"^8.3.0","typescript":"^5.5.4","vitest":"^4.1.7"},"license":"MIT","sideEffects":false,"publishConfig":{"access":"public"},"size-limit":[{"name":"@dornick/parsers-office (gz)","path":"dist/index.js","limit":"1.5 KB","gzip":true}],"gitHead":"622e4ebed9c3aebadd808a2dd1f5f29c7d226040","_id":"@dornick/parsers-office@0.1.0","_nodeVersion":"26.7.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-JHekT9GuycNROiOBipZjdwhG14JaH0pNGwXTe8R3vVkG6/QIRyrqvRz6+K+Msu/aGTgBCPM2tp1O/166fmouTA==","shasum":"c545f2bbab0102f1326e82dbef84fe86cee734be","tarball":"https://registry.npmjs.org/@dornick/parsers-office/-/parsers-office-0.1.0.tgz","fileCount":9,"unpackedSize":19105,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF1825NdnUDZadfXHZe9WGFOCvSCDrdauo21WdH4cUIKAiAZaQonFpASSM2A78dCPMFLAF6TylEsVNZ9XublhE6rog=="}]},"_npmUser":{"name":"dipankarsarkar","email":"me@dipankar.name"},"directories":{},"maintainers":[{"name":"dipankarsarkar","email":"me@dipankar.name"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parsers-office_0.1.0_1788784938643_0.6291784195009769"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-07T12:42:18.485Z","0.1.0":"2026-09-07T12:42:18.779Z","modified":"2026-09-07T12:42:19.467Z"},"maintainers":[{"name":"dipankarsarkar","email":"me@dipankar.name"}],"description":"Lazy DOCX and XLSX/CSV parsers for Dornick. Uses mammoth + SheetJS in the browser.","license":"MIT","readme":"# @dornick/parsers-office\n\n**Lazy DOCX + XLSX parsers for Dornick.** Uses mammoth.js (Word) and SheetJS (Excel) — both in the browser, no server upload.\n\n[![npm](https://img.shields.io/npm/v/@dornick/parsers-office.svg?style=flat&color=4c1)](https://www.npmjs.com/package/@dornick/parsers-office)\n[![license](https://img.shields.io/npm/l/@dornick/parsers-office.svg?style=flat&color=blue)](../../LICENSE)\n\n## Install\n\n```sh\nnpm i @dornick/parsers-office\n```\n\nDepends on [`mammoth`](https://www.npmjs.com/package/mammoth) (~50 KB gz) and [`xlsx`](https://sheetjs.com/) (~600 KB gz). Both load lazily on first read.\n\n## Use\n\n```ts\nimport { Dornick } from \"@dornick/core\";\nimport { docxParser, xlsxParser } from \"@dornick/parsers-office\";\n\nconst dornick = new Dornick({ config, transport });\ndornick.parsers.add(docxParser);\ndornick.parsers.add(xlsxParser);\n```\n\n## Paths produced\n\n### `docxParser` — `.docx`\n\n| Path | Content |\n|---|---|\n| `text.txt` | Plain text (paragraphs preserved) |\n| `html.html` | Semantic HTML (headings, lists, emphasis) |\n\n### `xlsxParser` — `.xlsx`, `.xls`\n\n| Path | Content |\n|---|---|\n| `summary.txt` | Sheets, row/column counts |\n| `sheets/index.txt` | Sheet names, one per line |\n| `sheets/<name>.jsonl` | Rows of that sheet as JSONL objects |\n\nThe `sheets/<name>.jsonl` paths are dynamic — claimed via the parser's `claims()` method.\n\n## See also\n\n- [Use case: Local PDF Q&A](https://docs.neullabs.com/dornick/use-cases/pdf-qa/)\n- [Concept: Parsers](https://docs.neullabs.com/dornick/concepts/parsers/)\n\n## License\n\nMIT — © Dipankar Sarkar\n","readmeFilename":"README.md","_rev":"1-16f37233dae9ae7f4bfe9d10e887037c"}