# dbashford/textract

node.js module for extracting text from html, pdf, doc, docx, xls, xlsx, csv, pptx, png, jpg, gif, rtf and more!

Repository: https://github.com/dbashford/textract
Canonical: https://ross.abutalabs.com/products/dbashford-textract
Language: HTML
License: MIT
License Family: permissive
Topics: extract-text, extraction, nodejs
Last push: 2025-12-15T16:37:00+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 57, release rhythm 35, longevity 100
- inputs: {"age_days": 4880, "days_push": 261, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1694, forks 198 (observed 2026-08-28T04:05:23.558149+00:00)

## What it is
A Node.js library that extracts plain text from many document formats including HTML, PDF, DOC/DOCX, XLS/XLSX, CSV, PPTX, RTF, EPUB, and images via OCR. It dispatches based on MIME type and shells out to external tools like pdftotext, antiword, and tesseract for some formats.

## Use cases
- extract text from pdf files in node
- parse text out of word documents
- convert docx to plain text
- ocr text from images png jpg
- extract text from excel spreadsheets
- index document contents for search
- pull text from pptx presentations

## When to choose
- you need a single Node.js API for many document formats
- you are okay installing external binaries like pdftotext or tesseract
- you want simple text extraction rather than structured parsing

## When to avoid
- you need structured data (tables, layout) rather than raw text
- you cannot install system-level external dependencies
- you need pure-JavaScript extraction with no native tool dependencies

## Facets
- artifact type: library
- maturity: maintenance
- function: ocr, parser, pdf, nlp
- domain: files, pdf, developer-tools
- platform: cross-platform
- tags: text-extraction, document-parsing, mime-type, office-documents, tesseract, natural-language-processing, nodejs

## Member repositories
- dbashford/textract (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:23.558149+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:37:59.259201+00:00, confidence not recorded.
  - readme: https://github.com/dbashford/textract (fetched 2026-08-28T04:05:23.558149+00:00, sha 4273a397ad71)
- Data as of 2026-08-30T08:39:29.467469+00:00.
