Skip to content

Balaji-R-05/todo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ Todo CLI (JSON + ID-based)

A simple command-line todo manager built with Node.js, Commander, and Chalk.
Stores todos in a JSON file, supports adding, viewing, editing, completing, and deleting todos by ID.


๐Ÿ“ฆ Features

  • Add todos with auto-incremented IDs
  • View todos with colored status ([Pending] / [Completed])
  • Edit todos by ID
  • Mark todos as completed
  • Delete todos by ID (auto reindexes IDs)
  • Data stored in todo.json file (auto-created if missing)

๐Ÿš€ Installation & Setup

1. Clone or download this repository

git clone https://github.com/Balaji-R-05/todo-cli.git
cd todo-cli

2. Install dependencies

npm install

3. Usage

node todo.js add <todo_text>      # Adds a new todo with given text. 
node todo.js show                  # Displays all todos with ID and status. 
node todo.js edit <id> <new_text>  # Updates a todoโ€™s text by its ID.
node todo.js complete <id>         # Marks a todo as completed by its ID.
node todo.js delete <id>           # Deletes a todo by its ID (reindexes remaining todos).

About

A simple command-line todo manager built with Node.js, Commander, and Chalk.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published