A simple command-line todo list application built with Node.js. Manage your tasks conveniently using this command-line interface.
The Command-Line Todo App allows you to add, view, delete, and complete tasks using your terminal. It's a lightweight and user-friendly way to manage your tasks without leaving the command line.
- Add tasks to your todo list.
- View the list of tasks.
- Delete tasks from the list.
- Mark tasks as completed.
- Help command to guide you through available actions.
- Saves tasks to a file for persistence between sessions.
-
Clone or download this repository to your local machine.
-
Open your terminal and navigate to the project directory.
-
Install dependencies by running:
npm install
To run the Command-Line Todo App, use the following command:
node index.jsThe following commands are available in the todo app:
add <task>: Add a new task to the todo list.view: View all tasks in the list.del <index>: Delete the task at the specified index.comp <index>: Mark the task at the specified index as completed.help: Display a list of available commands and their usage.exit: Exit the application and save your tasks.
Remember to follow the command format and argument requirements for each command.
To package the Command-Line Todo App as an executable using pkg, follow these steps:
-
Install the
pkgpackage globally if you haven't already:npm i pkg -g
-
Create a build using:
npm run build
-
The executable binary (e.g.,
todo-app) will be generated in thedistdirectory.
. Run the executable to use the Command-Line Todo App:
./todo-app # On Unix-based systems (Linux, macOS)
todo-app.exe # On WindowsFeel free to contribute to this project by reporting issues, suggesting improvements, or submitting pull requests. Enjoy using the Command-Line Todo App to manage your tasks with ease!