A minimal command-line task tracker written in Node.js. It stores tasks in a JSON file (data.json) in the project root and uses only Node's built-in modules (no external dependencies).
Project URL: https://github.com/Anugrah-Singh/Task-Tracker-CLI
Roadmap URL: https://roadmap.sh/projects/task-tracker
No installation is required. From the project root run commands with node index.js.
Examples:
node index.js add "Buy groceries"
node index.js list
node index.js list completed
node index.js mark 1612345678901 completed
node index.js delete 1612345678901
add <task text>
node index.js add "Write unit tests"list [completed|pending]
completed or pending to filter.node index.js list pendingmark <id> <completed|pending>
id.node index.js mark 1612345678901 completeddelete <id>
id.node index.js delete 1612345678901data.json at the project root. The file is automatically created if it does not exist.tasks array, e.g.:{
"tasks": [
{ "id": 1612345678901, "text": "Example task", "completed": false }
]
}
fs, path, and readline.utils/fileHandler.js provides readData() and writeData() helpers. readData() creates or resets data.json on errors and returns a stable { tasks: [] } structure; writeData() returns a boolean indicating success.process.argv) for simplicity.data.json may contain invalid JSON — the code will reset it to a safe default, but you may want to inspect the file and restore any lost tasks from a backup.Small fixes and improvements are welcome. Keep changes minimal and preserve the repository's no-dependency goal.
Happy tracking.