# Install officeparser with npm

A robust, strictly-typed Node.js and Browser library for parsing office files (.docx, .pptx, .xlsx, .odt, .odp, .ods, .pdf, .rtf, .csv, .md, .html) and generating high-fidelity outputs in Markdown, HTML, CSV, RTF, and RAG-focused chunks. Version 7.2.1 via npm; verified 2026-06-07.

## Install

```sh
sudo av install npm:officeparser
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g officeparser
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:officeparser
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/officeparser>
- **Version:** 7.2.1
- **Source summary:** A robust, strictly-typed Node.js and Browser library for parsing office files (.docx, .pptx, .xlsx, .odt, .odp, .ods, .pdf, .rtf, .csv, .md, .html) and generating high-fidelity outputs in Markdown, HTML, CSV, RTF, and RAG-focused chunks.
- **Homepage:** <https://officeparser.harshankur.com>
- **Repository:** <https://github.com/harshankur/officeParser>
- **Upstream docs:** <https://officeparser.harshankur.com>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/officeparser/-/officeparser-7.2.1.tgz>
- **Issue tracker:** <https://github.com/harshankur/officeParser/issues>
- **Published:** 2026-06-07T10:04:05.903Z
- **Last updated:** 2026-06-07T10:04:05.903Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- officeparser (cli)
- officeparser (alias)

## Dependencies

- @xmldom/xmldom
- fflate
- file-type
- pdfjs-dist
- tesseract.js

## Build dependencies

- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- buffer
- dts-bundle-generator
- esbuild
- esbuild-plugins-node-modules-polyfill
- eslint
- husky
- postject
- process
- puppeteer
- tsx
- typescript

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 7.2.1
- Package-manager updated: 2026-06-07
- Local data: ok
- Upstream repository: https://github.com/harshankur/officeParser
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for officeparser. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 4.0.3, Dev: 3.1.2, Latest: 7.2.1, Test Pdf: 4.1.0
- **Version Count:** 62
- **Maintainers:** harshankur
- **Author:** Harsh Ankur
- **Publisher:** GitHub Actions
- **Engines:** Node: >=18.0.0
- **Funding:** <https://github.com/sponsors/harshankur>
- **Integrity:** sha512-l9v4ygeUAZGjNlmXhQNIOaPpxAbLNHzcN32Mwyad/HfGOxLcMGrz8aXMVCGICxtE0s8Mq5MwAEkO9gdliK7hZw==
- **Shasum:** 8c450d23059a2a891ef43d9d1e2714a5ea3f9121
- **Unpacked Size:** 6,272,842
- **File Count:** 0
- **Created At:** 2019-04-15T10:37:25.848Z
- **Latest Published At:** 2026-06-07T10:04:05.903Z
- **Modified At:** 2026-06-07T10:04:06.265Z

## Other Package-Manager Records

- dnf - officeparser - 0.20180820-15.fc44: normalized package name match | Fedora Rawhide package metadata: officeparser from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Parse the format of OLE compound documents used by MS Office applications | https://github.com/unixfreak0037/officeparser


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [pdf2json](https://www.automicvault.com/pkg/npm/pdf2json/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, document, document-processing, file.
- [pdf-visual-diff](https://www.automicvault.com/pkg/npm/pdf-visual-diff/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, data, dist, document, document-processing.
- [mammoth](https://www.automicvault.com/pkg/npm/mammoth/) - Both packages work with overlapping file formats or content types. Shared terms: cli, data, document, docx, html.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
