lurq

npm package

Home

sanitize-filename

sanitize-filename is a utility that sanitizes strings to ensure they are safe for use as filenames by removing invalid characters and directory paths. It is particularly useful when handling user input that may contain unsafe characters. This package fits well in applications that need to create or manage files based on user-generated content.

lurq health score
59/100
Confidence
proven
Weekly downloads
8,624,655
Latest version
1.6.4
Last release
Mar 20, 2026
License
WTFPL OR ISC

Should you depend on sanitize-filename?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks sanitize-filename at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Other validation packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 6, 2026; this page refreshes every 24 hours. Source repository.