filenamify

Convert a string to a valid safe filename

v7.0.3 MIT 22 versions Maintained by sindresorhus
  • filename
  • safe
  • sanitize
  • file
  • name
  • string
  • path
  • filepath
  • convert
  • valid
  • dirname
Weekly downloads
9.4M -16%
vs previous week
Last 30 days
45.4M
Stars

Downloads

411.1M total · Sep 1, 2025 – Sep 1, 2026

Downloads by version

Last 7 days

Versions

22 releases published since Jan 14, 2015

Commit activity

Last 12 months

Contributors

Top 10

Issues