DEV Community

Bobo
Bobo

Posted on

file-batch-toolkit: Rename, Organize, and Deduplicate Files in Bulk

file-batch-toolkit: Rename, Organize, and Deduplicate Files in Bulk

Your Downloads folder is a mess. Your photo collection needs organizing. Your project files need standardizing. file-batch-toolkit is the swiss army knife for file management.

Installation

npm install -g file-batch-toolkit
Enter fullscreen mode Exit fullscreen mode

Features

Batch Rename

file-batch-toolkit rename ./files/ --prefix "project_" --counter
# project_001.jpg, project_002.jpg, ...
Enter fullscreen mode Exit fullscreen mode

Organize by Type

file-batch-toolkit organize ./downloads/
# Moves files into Images/, Documents/, Archives/ folders
Enter fullscreen mode Exit fullscreen mode

Find and Remove Duplicates

file-batch-toolkit deduplicate ./backups/
Enter fullscreen mode Exit fullscreen mode

Dry Run Mode

file-batch-toolkit rename ./files/ --prefix "2024_" --dry-run
# Preview changes without actually renaming
Enter fullscreen mode Exit fullscreen mode

Example: Clean Up Downloads

# See what we have
file-batch-toolkit organize ./downloads/ --dry-run

# Actually organize
file-batch-toolkit organize ./downloads/

# Deduplicate
file-batch-toolkit deduplicate ./downloads/

# Standardize naming
file-batch-toolkit rename ./downloads/images/ --prefix "photo_" --counter --dry-run
Enter fullscreen mode Exit fullscreen mode

Links

💻 GitHub: github.com/lb1192176991-lab/file-batch-toolkit

🌐 Visit us: https://www.tucaowall.vip/


Check out csv-toolkit, json-tidy, and image-optimizer for more productivity tools!

☁️ Get free DigitalOcean credit: https://m.do.co/c/fc5cb7b29a0d

Top comments (0)