A simple and intelligent Node.js command-line tool to automatically organize files into categorized folders based on file types. Includes undo support for safe file management.
- Organizes files into predefined categories (Images, Videos, Documents, Music, Archives, Others)
- Creates folders automatically
- Supports undoing the last organization
- Lightweight and fast
- Fully customizable categories via
folderMap
in the code
npm install -g file-organizer
Organize files in a directory:
file-organizer <directory>
Undo the last organization in a directory:
file-organizer <directory> --undo
file-organizer ./Downloads
Output:
Moved: photo.jpg → Images/
Moved: video.mp4 → Videos/
✅ Files organized successfully!
Undo:
file-organizer ./Downloads --undo
✅ Undo complete.
MIT License