slugify
« Back to VersTracker
Description:
Convert filenames and directories to a web friendly format
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli filenames web-development automation utility
Install: brew install slugify
About:
Slugify is a command-line utility that transforms strings, filenames, and directory names into URL-safe slugs. It removes special characters, replaces spaces with hyphens, and converts text to lowercase to ensure web compatibility. This tool is essential for developers managing assets and content routing in web applications.
Key Features:
  • Command-line interface for easy batch processing
  • Recursive directory renaming capabilities
  • Handles complex characters and whitespace intelligently
  • Preserves file extensions while sanitizing names
Use Cases:
  • Sanitizing user-uploaded files before storing on a web server
  • Batch renaming project assets for consistent URL routing
  • Cleaning up directories of screenshots or downloads for better organization
Alternatives:
  • node-slugify – Node.js library version; requires a JavaScript runtime vs. this standalone shell script
  • rename – General purpose bulk renamer; requires complex regex patterns to achieve similar slugification
Version History
Detected Version Rev Change Commit