cordplus-sleek-task-manager
v1.0.2
Published
A simple task management system
Downloads
10
Readme
update 1.0.1#
- fixed some bugs issues
- added little more features
Simple Task Manager
A simple task management system that allows users to create, update, and delete tasks. It includes features for setting due dates, categorizing tasks, and tracking completion status.
Installation
npm install simple-task-manager
Usage
const TaskManager = require('simple-task-manager');
const taskManager = new TaskManager();
// Create a task
const task = taskManager.createTask('Complete project', 'Finish the project by the deadline', '2023-12-31', 'Work');
// Update a task
taskManager.updateTask(task.id, { completed: true });
// Delete a task
taskManager.deleteTask(task.id);
// Get all tasks
const allTasks = taskManager.getAllTasks();
// Get tasks by category
const workTasks = taskManager.getTasksByCategory('Work');
// Get completed tasks
const completedTasks = taskManager.getCompletedTasks();
// Get pending tasks
const pendingTasks = taskManager.getPendingTasks();