A simple command-line task manager built with TypeScript and Node.js.
I made this project to practice:
- TypeScript basics
- class-based design
- file storage with JSON
- simple CLI command handling
- List all tasks
- Add one or more tasks
- Mark a task as done
- Remove a task by id
- Persist tasks in
data/tasks.json
- TypeScript
- Node.js
tsx
Install dependencies:
npm installRun the project:
npm run dev -- helpType check:
npm run checknpm run dev -- list
npm run dev -- add "Learn TypeScript"
npm run dev -- add "Task One" "Task Two"
npm run dev -- done 1
npm run dev -- remove 1src/
index.ts
task-manager.ts
storage.ts
types.ts
data/
tasks.json
This is a small learning project, so the focus is on clarity and practice rather than full production features.