Skip to content
JS
Package

hast-util-from-dom

hast utility to create a tree from the DOM

v5.0.1, 19 Nov 2024ISCESM onlyTypes: BundledDOM and browser utilities
$ npm install hast-util-from-dom

Key numbers

As of 25 Sept 2026
Weekly downloads
5.8m
+483% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
1 year ago
v5.0.1
GitHub stars
24
2 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02.5m5m7.5m10mSept 2025Mar 2026Sept 2026High 8.4m (25 Aug 2026)Low 1.1m (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.

5,833,276 downloads last week, 29,122,618 in the last month. The 12-month change of +483% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
015 in total
Latest version
5.0.1, 19 Nov 20241 year ago
First published
30 May 2018
Last push to GitHub
19 Nov 2024674 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
50

Major versions

  1. v5 first release 5.0.0, 4 Aug 2023
  2. v4 first release 4.0.0, 2 May 2021
  3. v3 first release 3.0.0, 21 Aug 2020
  4. v2 first release 2.0.0, 31 May 2019
  5. v1 first release 1.0.0, 4 Jun 2018

Recent releases

VersionPublished
5.0.119 Nov 2024
5.0.04 Aug 2023
4.2.09 Jan 2023
4.1.029 Jan 2022
4.0.127 Aug 2021
4.0.02 May 2021
3.0.021 Aug 2020
2.0.515 Mar 2020
2.0.44 Mar 2020
2.0.328 Feb 2020
2.0.228 Feb 2020
2.0.13 Jun 2019
2.0.031 May 2019
1.0.16 Jul 2018
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
16 kB
Dependencies (3)
hastscript@types/hastweb-namespaces
npm install hast-util-from-dom

CDN

jsDelivr: 66.6k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/hast-util-from-dom@5.0.1/
  • unpkghttps://unpkg.com/hast-util-from-dom@5.0.1/
  • esm.shhttps://esm.sh/hast-util-from-dom@5.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
rehype-dom-stringify210.6k-1 year agoESM only-
@tanem/svg-injector232.4k-24 days agoESM + CommonJS-
react-svg232.1k-24 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.