@papagrigoriouc/todo-cli
v2.0.0
Published
CLI tool for managing a to-do list with Node.js, storing data in a JSON file, colorized output (chalk), and tables (cli-table3).
Downloads
10
Readme
Kandu To‑Do CLI
CLI tool for managing a to-do list with Node.js, storing data in a JSON file, colorized output (chalk), and tables (cli-table3).
Installation (local development)
npm install
npm linkThen run:
todo --helpInstall globally from NPM (after publishing)
npm install -g <package-name>Usage
todo add "Buy groceries"
# => Todo added successfully with ID: 1
todo show all
# => Displays a table with todoId, todoDescription, todoStatus
todo update {todoId} completed
# => Todo 1 status updated to completed
todo delete {todoId}
# => Todo with ID 1 has been deleted successfully.
todo delete 100
# => Error: Todo with ID 100 not found.Notes
- Data is stored in
todos.jsonat the package root. - Allowed statuses:
pending,completed. - Help command:
todo --help. - Node 18+.
Publishing to NPM
- Create an npm account:
npm adduser(ornpm login). - Change the
nameinpackage.jsonto something unique (e.g.,@username/todo-clior any unique name). - Bump the
versionif you republish. - Run
npm publish(ornpm publish --access publicfor a scoped package).
Quick checks/tests
- Test empty edge cases (empty description, wrong id, invalid status).
- Test multiple add/delete/update operations.
- Optionally add unit tests later.
