Skip to content
JS
Package

agent-sanitizer

Defend an agent against hidden-content injection: strip payload-capable invisible Unicode and ANSI, splice out human-invisible HTML, and flag data-exfil URLs in untrusted text before any model sees it.

v2.58.6, 21 Sept 2026Apache-2.0ESM onlyTypes: BundledSecurity
$ npm install agent-sanitizer

Key numbers

As of 25 Sept 2026
Weekly downloads
23.9k
- over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
17
Direct, from package.json
Last release
3 days ago
v2.58.6
GitHub stars
11
1 forks
Open issues / PRs
2 / 2
Contributors
-
Commits, last 52 weeks
1,908

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30k40kSept 2025Mar 2026Sept 2026High 38.4k (4 Aug 2026)Low 0 (23 Sept 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

23,911 downloads last week, 102,174 in the last month. No 52-week series has been fetched yet.

Releases, last 12 months
-
Latest version
2.58.6, 21 Sept 20263 days ago
First published
-
Last push to GitHub
22 Sept 20262 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
2
Commits, last 52 weeks
1,908
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
1.4 MB
Dependencies (17)
vfileparse5unifiedcss-treeremark-parsemdast-util-gfmnamespace-guardunist-util-visitmicromark-util-typeshast-util-from-parse5agent-control-plane-coremicromark-util-charactermicromark-extension-gfm-tablemicromark-extension-gfm-footnotemicromark-util-combine-extensionsmicromark-extension-gfm-strikethroughmicromark-extension-gfm-task-list-item
npm install agent-sanitizer
  • jsDelivrhttps://cdn.jsdelivr.net/npm/agent-sanitizer@2.58.6/
  • unpkghttps://unpkg.com/agent-sanitizer@2.58.6/
  • esm.shhttps://esm.sh/agent-sanitizer@2.58.6
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.