https://github.com/yuvrajnode/cli-todo-app
A command-line Todo app built with Node.js using Commander and Chalk. Supports adding, showing, editing, completing, and deleting todos stored in a local file.
https://github.com/yuvrajnode/cli-todo-app
chalk cli commander nodejs todo
Last synced: about 2 months ago
JSON representation
A command-line Todo app built with Node.js using Commander and Chalk. Supports adding, showing, editing, completing, and deleting todos stored in a local file.
- Host: GitHub
- URL: https://github.com/yuvrajnode/cli-todo-app
- Owner: yuvrajnode
- Created: 2025-06-29T17:29:09.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T17:31:02.000Z (12 months ago)
- Last Synced: 2025-06-29T18:29:21.260Z (12 months ago)
- Topics: chalk, cli, commander, nodejs, todo
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
📝 CLI Todo App
A simple and functional command-line Todo app built with Node.js using `commander` for CLI interface and `chalk` for colorful outputs. All todos are saved to a `todo.txt` file.
📦 Features
- Add new todos
- Show all todos (color-coded by completion)
- Delete last todo
- Edit a specific todo
- Mark a todo as complete
🚀 How to Use
1. Clone the repository and install dependencies:
```bash
npm install
```
2. Run the CLI using:
```bash
node index.js
```
Commands
```bash
node index.js add "Buy groceries"
node index.js show
node index.js delete
node index.js edit "Buy groceries" "Buy vegetables"
node index.js complete "Buy vegetables"
```
🛠 Built With
- Node.js
- Commander.js
- Chalk
- FS module
📁 File
- `todo.txt` – stores your todos line by line