# Install textract with npm

Extracting text from files of various type including html, pdf, doc, docx, xls, xlsx, csv, pptx, png, jpg, gif, rtf, text/*, and various open office. Version 2.5.0 via npm; verified 2019-06-03.

## Install

```sh
sudo av install npm:textract
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g textract
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:textract
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/textract>
- **Version:** 2.5.0
- **Source summary:** Extracting text from files of various type including html, pdf, doc, docx, xls, xlsx, csv, pptx, png, jpg, gif, rtf, text/*, and various open office.
- **Homepage:** <https://github.com/dbashford/textract>
- **Repository:** <https://github.com/dbashford/textract>
- **Upstream docs:** <https://github.com/dbashford/textract>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/textract/-/textract-2.5.0.tgz>
- **Issue tracker:** <https://github.com/dbashford/textract/issues>
- **Published:** 2019-06-03T13:23:50.946Z
- **Last updated:** 2019-06-03T13:23:50.946Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- textract (cli)
- textract (alias)

## Dependencies

- cheerio
- epub2
- got
- html-entities
- iconv-lite
- j
- jschardet
- marked
- meow
- mime
- pdf-text-extract
- xmldom
- xpath
- yauzl

## Build dependencies

- chai
- eslint
- eslint-config-airbnb
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-react
- mocha

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.0
- Package-manager updated: 2019-06-03
- Local data: ok
- Upstream repository: https://github.com/dbashford/textract
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

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


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.5.0
- **Version Count:** 46
- **Maintainers:** dbashford
- **Author:** David Bashford
- **Publisher:** dbashford
- **Engines:** Node: >=0.8
- **Integrity:** sha512-sSic0+fZMx9jxfqQVpGlHPzxv/3VTp95o7r/reMNMXq8DWqimDLqO+NvoZVihHYyOBHbF22NlUx+6ZveFzNHiA==
- **Shasum:** abfd0accf9934c880dd633fbcb8446b85f99e780
- **Unpacked Size:** 118,700
- **File Count:** 0
- **Created At:** 2013-04-26T20:20:42.612Z
- **Latest Published At:** 2019-06-03T13:23:50.946Z
- **Modified At:** 2023-08-09T19:43:26.558Z


## Related links

- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [pwa-asset-generator](https://www.automicvault.com/pkg/npm/pwa-asset-generator/) - Both packages work with overlapping file formats or content types. Shared terms: cheerio, cli, files, graphics, html.
- [svg-sprite](https://www.automicvault.com/pkg/npm/svg-sprite/) - Both packages work with overlapping file formats or content types. Shared terms: cli, files, graphics, html, media.
- [ts-images](https://www.automicvault.com/pkg/npm/ts-images/) - Both packages work with overlapping file formats or content types. Shared terms: cli, gif, graphics, image, jpg.

## Sources

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