A simple and efficient filesystem-based TODO manager built using Node.js.
π Developed as part of Harkiratβs cohort Assignment #2 with no AI assistanceβjust official docs and hands-on coding!
β
Add a TODO
β
Delete a TODO
β
Mark a TODO as done
β
Persistent storage using JSON
β
Beautiful CLI UI with Chalk & Commander
β
Fully functional help menu
Ensure you have Node.js installed. Then, clone this repository and install dependencies:
git clone https://github.com/yourusername/taskmaster-cli.git
cd taskmaster-cli
npm install
node index.js add "Finish assignment"
node index.js done <taskID>
Example:
node index.js done 1
node index.js delete <taskID>
Example:
node index.js delete 1
node index.js display
node index.js --help
Include the following screenshots for better documentation:
- Help Menu (
node index.js --help
) - Showcases available commands.
- Adding a Task (
node index.js add "task-name"
) - Demonstrates how tasks are added.
- Displaying Tasks (
node index.js display
) - Shows the task list in the formatted CLI UI.
- Marking a Task as Done (
node index.js done <taskID>
) - Displays a task being marked as done.
- Deleting a Task (
node index.js delete <taskID>
) - Shows a task being deleted.
- Node.js
- Chalk (for styling terminal output)
- Commander (for command-line interface)
- File System (fs) (for JSON-based storage)
π¦ taskmaster-cli
β£ π helpers/
β β£ π display.js
β β£ π taskManager.js
β β£ π getSize.js
β£ π index.js
β£ π package.json
β£ π todos.json (Stores tasks)
β π README.md
Feel free to fork and improve the tool! Open a PR if you have suggestions. π
This project is open-source under the MIT License.