tidy-downloads
v0.1.1
Published
A CLI tool to automatically organize the Downloads folder.
Maintainers
Readme
Tidy Downloads
A simple CLI tool to automatically organize your Downloads folder.
Description
This tool scans your Downloads folder and moves files into categorized subdirectories based on their file extension. This helps keep your Downloads folder clean and organized.
Installation
- Clone the repository:
git clone https://github.com/your-username/tidy-downloads.git - Navigate to the project directory:
cd tidy-downloads - Install the dependencies:
npm install
Usage
To run the cleaner, use the following command:
npm startDry Run
If you want to see what changes the script will make without actually moving any files, you can use the --dry-run flag:
npm start -- --dry-runCustomization
You can customize the file categories and extensions by editing the categories object in the cleaner.js file.
const categories = {
Images: ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.svg', '.webp'],
Documents: ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.txt', '.rtf', '.csv'],
Archives: ['.zip', '.rar', '.7z', '.tar', '.gz'],
Audio: ['.mp3', '.wav', '.aac', '.flac', '.ogg'],
Video: ['.mp4', '.mov', '.avi', '.mkv', '.wmv'],
Code: ['.js', '.jsx', '.ts', '.tsx', '.py', '.java', '.c', '.cpp', '.h', '.html', '.css', '.json', '.xml', '.yml', '.yaml', '.sh', '.bash', '.md'],
Other: [] // A fallback category
};License
This project is licensed under the ISC License.
