Skip to content

Balaji-R-05/todo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Todo CLI

A simple command-line todo manager built with Node.js, Commander, and Chalk. Stores todos in a JSON file and supports managing tasks via a command-line interface.


πŸ“¦ Features

  • Add todos
  • View todos with status indicators ([βœ”] / [ ])
  • Mark todos as completed
  • Toggle todo completion status
  • Edit existing todos
  • Delete todos
  • View statistics (completed vs pending)
  • Search todos by keyword
  • Clear all todos
  • Data stored persistently in todos.json

πŸš€ 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

All commands use the Todo Number (index) shown in the show command, not the internal ID.

node todo.js add <text>            # Add a new todo
node todo.js show                  # List all todos
node todo.js toggle <id>            # Toggle completion status of todo #id
node todo.js complete <id>          # Mark todo #id as completed
node todo.js edit <id> <text>       # Update text of todo #id
node todo.js delete <id>            # Delete todo #id
node todo.js stats                 # Show completion statistics
node todo.js search <keyword>      # Search todos for keyword
node todo.js clear                 # Delete ALL todos

Examples

node todo.js add "Buy groceries"
node todo.js show
node todo.js toggle 1
node todo.js search "buy"
node todo.js stats

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