Package
hast-util-from-dom
hast utility to create a tree from the 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
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
- v5 first release 5.0.0, 4 Aug 2023
- v4 first release 4.0.0, 2 May 2021
- v3 first release 3.0.0, 21 Aug 2020
- v2 first release 2.0.0, 31 May 2019
- v1 first release 1.0.0, 4 Jun 2018
Recent releases
| Version | Published |
|---|---|
| 5.0.1 | 19 Nov 2024 |
| 5.0.0 | 4 Aug 2023 |
| 4.2.0 | 9 Jan 2023 |
| 4.1.0 | 29 Jan 2022 |
| 4.0.1 | 27 Aug 2021 |
| 4.0.0 | 2 May 2021 |
| 3.0.0 | 21 Aug 2020 |
| 2.0.5 | 15 Mar 2020 |
| 2.0.4 | 4 Mar 2020 |
| 2.0.3 | 28 Feb 2020 |
| 2.0.2 | 28 Feb 2020 |
| 2.0.1 | 3 Jun 2019 |
| 2.0.0 | 31 May 2019 |
| 1.0.1 | 6 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-domCDN
jsDelivr: 66.6k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/hast-util-from-dom@5.0.1/ - unpkg
https://unpkg.com/hast-util-from-dom@5.0.1/ - esm.sh
https://esm.sh/hast-util-from-dom@5.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| rehype-dom-stringify | 210.6k | - | 1 year ago | ESM only | - |
| @tanem/svg-injector | 232.4k | - | 24 days ago | ESM + CommonJS | - |
| react-svg | 232.1k | - | 24 days ago | ESM + CommonJS | - |
Indexability: Indexed.