Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

sanitize-filename

Makes any string safe to use as a file name.

UtilitiesNPM

GitHubWebsite

1. License

License from npm.

github.com/parshap/node-sanitize-filename

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What sanitize-filename does

Makes any string safe to use as a file name.

sanitize-filename popularity

46 / 100
Gid Score, #2424 overall
15.7M
downloads a week, npm
372
GitHub stars
3
agent projects use it
sanitize-filename: downloads per weeknpm, sanitize-filename 15,669,091
sanitize-filename: GitHub starsparshap/node-sanitize-filename 372

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How sanitize-filename is used

  • sanitize-filename joined the catalog on its public numbers (15,669,091 downloads a week on npm and 372 GitHub stars), not on our project count: it is a dependency in 9 public GitHub projects of our scan, 3 of them set up for AI coding agents.
  • Projects that use it most often also use Express (55.6%), Lodash (55.6%), ts-node (55.6%).

Often used with

In 55.6% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 44.4% of its projects
In 44.4% of its projects

More about sanitize-filename

More in Utilities

Alternatives

sanitize-filename This page

WTFPL OR ISCGid 4615.7M/wk

Compare sanitize-filename with another tool

Get started

Install it.

npm install sanitize-filename

No step-by-step start for sanitize-filename yet: we have not written its hand-checked card.