Skip to content
JS
Package

hast-util-sanitize

hast utility to sanitize nodes

v5.0.2, 25 Oct 2024MITESM onlyTypes: BundledSecurity
$ npm install hast-util-sanitize

Key numbers

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

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 11m (25 Aug 2026)Low 759.5k (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.

8,176,607 downloads last week, 36,703,077 in the last month. The 12-month change of +615% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
020 in total
Latest version
5.0.2, 25 Oct 20241 year ago
First published
18 Jun 2016
Last push to GitHub
25 Oct 2024699 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
141

Major versions

  1. v5 first release 5.0.0, 3 Aug 2023
  2. v4 first release 4.0.0, 30 Apr 2021
  3. v3 first release 3.0.0, 20 Jul 2020
  4. v2 first release 2.0.0, 27 Jun 2019
  5. v1 first release 1.0.0, 18 Jun 2016

Recent releases

VersionPublished
5.0.225 Oct 2024
5.0.126 Oct 2023
5.0.03 Aug 2023
4.1.03 Jan 2023
4.0.030 Apr 2021
3.0.223 Nov 2020
3.0.13 Nov 2020
3.0.020 Jul 2020
2.0.324 Jun 2020
2.0.228 Feb 2020
2.0.116 Jul 2019
2.0.027 Jun 2019
1.3.126 May 2019
1.3.09 Jan 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)
47 kB
Dependencies (3)
@types/hastunist-util-position@ungap/structured-clone
npm install hast-util-sanitize

CDN

jsDelivr: 133.1k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/hast-util-sanitize@5.0.2/
  • unpkghttps://unpkg.com/hast-util-sanitize@5.0.2/
  • esm.shhttps://esm.sh/hast-util-sanitize@5.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
dompurify45.3m-1 day agoESM + CommonJS-
isomorphic-dompurify4m-5 days agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.