The Downloads Folder File Sorter is a Node.js script that automatically organizes your downloads folder by sorting files into their respective directories based on their file types. It also renames all files using the snake_case naming convention.
- Node.js
- TypeScript
npm i -g typescipt
- Clone the repository:
git clone https://github.com/PrinceMahdi/fileOrganizer.git
cd fileOrganizer
Open the index.ts file in your preferred text editor.
Replace the following with your actual downloads folder path:
const downloadsPath: string = "YOUR_DOWNLOADS_PATH_GOES_HERE";
For macOS users, it would be something like "/Users/your_username/Downloads"
For Windows users, it would be something like "C:\Users\your_username\Downloads"
To run the script, simply type the following command in your terminal:
npm start
This will organize your files in your downloads folder according to their extension and rename them accordingly.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.