1.0.0 • Published 7 months ago
github-together v1.0.0
File Organizer CLI Tool
This project is a CLI tool that helps in organizing files in a specified directory based on their extensions. It handles command-line arguments, reads and writes files, and performs various file system operations.
Features
- Organizes files in a directory based on their extensions.
- Creates directories for each file extension if they do not exist.
- Moves files into their respective directories.
- Interactive prompts for directory input using
inquirer
. - Colored output using
chalk
.
Installation
- Clone the repository and navigate to the project directory.
- Install the dependencies using
npm install
.
git clone https://github.com/amantyagi22/CLI-Org-Files
cd CLI-Org-Files
npm install
Usage
To use this CLI tool, follow the steps below:
- Run the CLI tool using the
start
script.
npm start
- You will be prompted to provide a directory path. Enter the path of the directory you want to organize.
? Please provide a directory path: /path/to/your/directory
- The tool will organize the files in the specified directory based on their extensions.
Example
npm start
? Please provide a directory path: /Users/home/Downloads
Files organized successfully!
Dependencies
- chalk - For colored output.
- commander - For command-line argument parsing.
- inquirer - For interactive prompts.
License
This project is licensed under the ISC License.
1.0.0
7 months ago