rehype-sanitize
rehype plugin to sanitize HTML
rehype-sanitize@6.0.0 was published on 2023-08-26. Its manifest declares 2 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All rehype-sanitize versions · Permanent reference to 6.0.0
Package specifications
| Version | 6.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2023-08-26T11:11:05.469Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | 7.82 KiB |
| Minified + gzip | 3.20 KiB |
| Unpacked distribution size | 20.30 KiB |
| Published file count | 7 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 5 |
| Repository stars | 224 |
| Repository forks | 8 |
Install rehype-sanitize 6.0.0
npm install rehype-sanitize@6.0.0 pnpm add rehype-sanitize@6.0.0 yarn add rehype-sanitize@6.0.0
Runtime dependencies
- @types/hast ^3.0.0
- hast-util-sanitize ^5.0.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @types/hast@3.0.5 — direct
- @types/unist@3.0.3 — indirect
- @ungap/structured-clone@1.4.0 — indirect
- hast-util-sanitize@5.0.2 — direct
- unist-util-position@5.0.0 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 0/10 — Found 1/30 approved changesets -- score normalized to 0 |
|---|---|
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Signed-Releases | 0/10 — Project has not signed or included provenance with any releases. |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| Security-Policy | 10/10 — security policy file detected |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/rehype-sanitize/6.0.0 — retrieved 2026-10-29T17:04:57.601Z
- https://api.deps.dev/v3/systems/npm/packages/rehype-sanitize/versions/6.0.0 — retrieved 2026-10-29T17:04:58.099Z
- https://api.deps.dev/v3/systems/npm/packages/rehype-sanitize/versions/6.0.0:dependencies — retrieved 2026-10-29T17:04:58.155Z
- https://bundlephobia.com/api/size?package=rehype-sanitize%406.0.0 — retrieved 2026-10-29T17:04:58.127Z
- https://api.deps.dev/v3/projects/github.com%2Frehypejs%2Frehype-sanitize — retrieved 2026-10-29T17:04:58.287Z