Skip to content
JS
Package

hast-util-to-text

hast utility to get the plain-text value of a node according to the `innerText` algorithm

v4.0.2, 16 Apr 2024MITESM onlyTypes: Bundled
$ npm install hast-util-to-text

Key numbers

As of 25 Sept 2026
Weekly downloads
10.1m
+407% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
2 years ago
v4.0.2
GitHub stars
25
2 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 14.3m (25 Aug 2026)Low 2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

10,149,527 downloads last week, 50,813,088 in the last month. The 12-month change of +407% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
4.0.2, 16 Apr 20242 years ago
First published
22 May 2019
Last push to GitHub
16 Apr 2024891 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
126

Major versions

  1. v4 first release 4.0.0, 2 Aug 2023
  2. v3 first release 3.0.0, 28 Apr 2021
  3. v2 first release 2.0.0, 28 Feb 2020
  4. v1 first release 1.0.0, 22 May 2019

Recent releases

VersionPublished
4.0.216 Apr 2024
4.0.17 Apr 2024
4.0.02 Aug 2023
3.1.25 Jan 2023
3.1.18 Oct 2021
3.1.023 Aug 2021
3.0.028 Apr 2021
2.0.131 Oct 2020
2.0.028 Feb 2020
1.0.122 May 2019
1.0.022 May 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
33 kB
Dependencies (4)
@types/hast@types/unisthast-util-is-elementunist-util-find-after
npm install hast-util-to-text

CDN

jsDelivr: 67.2k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/hast-util-to-text@4.0.2/
  • unpkghttps://unpkg.com/hast-util-to-text@4.0.2/
  • esm.shhttps://esm.sh/hast-util-to-text@4.0.2
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.