A simple CLI tool to automatically organize files in a folder based on their extensions — built with TypeScript.
- 📦 Organizes files into folders like
Images/,Documents/,Videos/, etc. - 🔍 Scans a given folder path
- 🪄 Creates directories if they don't exist
- 🗃️ Moves files based on common extensions
- 🧑💻 Written in TypeScript, bundled with
tsup
npm install -g folder-organizernpx folder-organizer <path-to-folder>| Flag | Description |
|---|---|
--verbose |
Enables detailed logs of the file organization process. |
--dry-run |
Simulates the organization process without actually moving any files. |
folder-organizer <path-to-folder># Organize with detailed logs
folder-organizer /path/to/your/folder --verbose# Preview actions without actually moving files
folder-organizer /path/to/your/folder --dry-run# Combine both
folder-organizer /path/to/your/folder --verbose --dry-runfolder-organizer <path-to-folder>