An open API service indexing awesome lists of open source software.

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.

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