lurq

npm package

Home

hast-util-to-text

hast-util-to-text is a utility for extracting the plain-text value of a hast node, mimicking the DOM's innerText behavior. It is useful when you need a text representation that reflects how content is visible to users, including handling line breaks and tabs. This package is ideal for applications that require text extraction from HTML-like structures.

lurq health score
47/100
Confidence
unproven
Weekly downloads
10,207,694
Latest version
4.0.2
Last release
Apr 16, 2024
License
MIT

Should you depend on hast-util-to-text?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks hast-util-to-text at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Upgrading hast-util-to-text

What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.

Other utility packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 20, 2026; this page refreshes every 168 hours. Source repository.