# sanitize-filename — card for AI agents

Makes any string safe to use as a file name.

Category: Utilities · npm package `sanitize-filename` · latest version 1.6.4 (checked 2026-11-01)
Install: `npm install sanitize-filename`
License: WTFPL OR ISC (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 46.1 (#2424 of all tools, 265 of 408 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 15,669,091 (as of 2026-11-24), +45.5% over 4 weeks
- GitHub stars: 372 (as of 2026-11-24)
- Last push: 2026-11-07

## Often used with
Express 55.6%, Lodash 55.6%, ts-node 55.6%, uuid 55.6%, OpenAI 55.6%, dotenv 55.6%

## Links
- AgentGid page: https://agentgid.com/tools/sanitize-filename/
- Homepage: https://github.com/parshap/node-sanitize-filename#readme
- Repository: https://github.com/parshap/node-sanitize-filename

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
