html-to-text is a Node package that converts HTML markup into readable plain text. The same project also publishes a command-line wrapper and a markdown converter work in progress.
Overview
html-to-text is an advanced converter that turns HTML into plain text for use in Node.js applications. The published html-to-text package is the main library consumers import when they need formatted text output from HTML strings or fragments, such as email bodies or scraped pages.
The surrounding codebase is a monorepo. Besides the core html-to-text library, it includes a dedicated CLI package for running conversions from the shell and a separate html-to-markdown package that remains work in progress. Shared code between packages lives in an internal base package bundled into published releases.
Developers typically add the library as a dependency in a Node project and invoke its conversion API on HTML input. The companion CLI targets the same conversion job for scripted or manual use without writing code. Documentation for each package is maintained alongside that package within the monorepo.
Key features
- HTML to plain text conversion
- Monorepo with core library
- Companion CLI package
- Markdown converter package in progress
Use cases
- Plain text from HTML in Node apps
- Email or notification text extraction
- Shell-based HTML conversion via CLI