Skip to content

πŸ“ CLI File Organizer A simple command-line tool built with Node.js that automatically organizes files in a given folder into categorized subfolders like Documents, Images, Videos, Code, and more β€” based on their file extensions. Great for quickly cleaning up messy download directories.

Notifications You must be signed in to change notification settings

Delllllllllllll/CLI-File-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ CLI File Organizer

A simple command-line tool built with Node.js that organizes files in a specified folder into categorized subfolders like Documents, Images, Videos, Code, and more β€” based on file extensions.


πŸ”§ Features

  • Automatically organizes files by type
  • Supports extensions for code, media, documents, and archives
  • Creates folders if they don't exist
  • Simple CLI usage
  • Built with Node.js and native modules

πŸ“¦ File Categories

Category Extensions
Images .jpg, .jpeg, .png, .gif, .svg, .bmp
Documents .pdf, .docx, .txt, .xlsx, .pptx
Music .mp3, .wav, .flac, .aac
Videos .mp4, .mkv, .avi, .mov
Archives .zip, .rar, .7z, .tar
Code .js, .ts, .html, .css, .json, .py, .java, .cpp, .c, .rb
Others Anything not matched in the list above

πŸš€ How to Use

  1. Clone the repository:
    git clone https://github.com/your-username/CLI-File-Organizer.git
    cd CLI-File-Organizer node app.js ./Downloads
    
  2. Run the script with the folder you want to organize:
    node app.js ./Downloads

βœ… This will organize the contents of your Downloads folder into subfolders like Documents, Images, etc.

About

πŸ“ CLI File Organizer A simple command-line tool built with Node.js that automatically organizes files in a given folder into categorized subfolders like Documents, Images, Videos, Code, and more β€” based on their file extensions. Great for quickly cleaning up messy download directories.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published