{"library":"hast-util-to-text","type":"library","category":null,"description":"hast-util-to-text is a utility for the unified ecosystem that extracts the plain-text value from a HAST (HTML Abstract Syntax Tree) node. It approximates the DOM's `Node#innerText` algorithm, which is more user-friendly than `Node#textContent` (like `hast-util-to-string`) by converting `<br>` elements into line breaks and using tabs (`\\t`) between table cells. The package is currently at version 4.0.2, actively maintained, and primarily releases patch versions for fixes and minor updates for new features, with major versions reserved for breaking changes. Its key differentiator is its adherence to the `innerText`-like behavior, providing a textual representation that reflects how content would be visually rendered, although it cannot account for dynamic CSS properties like `display: none` or `text-transform`.","language":"javascript","status":"active","version":"4.0.2","tags":["javascript","unist","hast","hast-util","util","utility","html","string","content","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-to-text","imports":["import { toText } from 'hast-util-to-text'","import type { Options } from 'hast-util-to-text'","import type { Whitespace } from 'hast-util-to-text'"]},{"cmd":"yarn add hast-util-to-text","imports":[]},{"cmd":"pnpm add hast-util-to-text","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-to-text","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-to-text","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/hast-util-to-text/compatibility"}}