This code is a simple command-line interface (CLI) tool for managing a to-do list using JSON files.
- Add a new to-do item with a deadline.
- Remove an existing to-do item by specifying the title and date.
- Mark an existing to-do item by specifying the title and date as done.
Clone the repository
npm install
- Add a To-Do
- To add a new to-do item, use the add command followed by the deadline and the to-do title:
node Todo.js add <Time> <Todo>
- Remove a To-Do
- To remove an existing to-do item, use the remove command followed by the title and the date of the JSON file:
node Todo.js remove <Todo> <Date>
- Mark a To-do done
- To Mark an existing to-do item done, use the mark command followed by the title and the date of the JSON file:
node Todo.js mark <Todo> <Date>
- For help
node Todo.js -h