@happyvibess/file-organizer
v1.2.0
Published
Simple CLI tool to automatically organize your files by type
Downloads
2
Maintainers
Readme
organize-cli
A simple command-line tool to automatically organize your files by type.
Features
- 📁 Automatically organizes files into categorized folders
- 🎨 Supports common file types (images, documents, audio, video, etc.)
- 🔍 Dry-run mode to preview changes
- 📝 Detailed logging with verbose mode
- ⚡ Fast and efficient file operations
- 🛡️ Safe file moves with conflict handling
Installation
# Install globally
npm install -g @happyvibess/file-organizer
# Or use with npx
npx @happyvibess/file-organizerQuick Start
organize # Organize current directory
o # Short command to organize current directory
organize Downloads # Organize specific directoryUsage
# Organize current directory
organize
# or use the short alias
o
# Organize specific directory
organize /path/to/directory
# or
o /path/to/directory
# Preview changes without actually moving files
organize --dry-run
# or
o -d
# Show detailed output
organize --verbose
# or
o -vOptions
-d, --dry-run: Preview changes without moving files-v, --verbose: Show detailed output--version: Show version number-h, --help: Show help information
Supported File Types
The organizer creates the following category folders and moves files accordingly:
- 📸 images: jpg, jpeg, png, gif, bmp, svg, webp
- 📄 documents: pdf, doc, docx, txt, md, rtf, odt
- 🎵 audio: mp3, wav, flac, m4a, aac
- 🎥 video: mp4, avi, mkv, mov, wmv
- 📦 archives: zip, rar, 7z, tar, gz
- 💻 code: js, py, java, cpp, html, css, php, rb
- 📎 misc: all other file types
Examples
# Organize Downloads folder
organize ~/Downloads
# Preview organization of Desktop
organize ~/Desktop --dry-run
# Organize current directory with detailed output
organize -v
# or use the short commands
o ~/Downloads
o ~/Desktop -d
o -vRequirements
- Node.js >= 14.0.0
- npm >= 6.0.0
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support ☕
If you find this tool helpful, you can support its development by buying me a coffee!
License
This project is licensed under the MIT License - see the LICENSE file for details.

