schedule-list
v1.0.1
Published
Build a ToDo list application that allows users to categorize tasks and mark them as completed. Tasks and categories should be represented as objects.
Downloads
2
Readme
MyList Package
Overview
MyList is a simple package that allows users to manage their daily tasks. With MyList, users can add tasks for different times of the day, mark tasks as completed, and remove tasks. This package provides a convenient way to organize and track daily activities.
Installation
To install MyList, you can use npm :
npm install schedule-list
Usage
To use MyList in your project, you can import the package and start managing your tasks:
`
const MyList = require('schedule-list');
// Add new task
MyList.newTask('monday', 'Morning task', 'Lunch task', 'Dinner task', 'Night task');
// Get tasks for a specific day
const mondayTasks = MyList.whatday('monday');
// Mark a task as completed
MyList.markTask('monday', 'Morning');
// Mark all tasks for a day as completed
MyList.markAll('monday');
// Remove a task from a day
MyList.removeTask('monday', 'Morning');
Methods
newTask(dayName, morning, lunch, dinner, night)
: Add a new task for a specific day.whatday(dayName)
: Get tasks for a specific day.markTask(dayName, task):
Mark a task as completed for a specific day.markAll(dayName):
Mark all tasks for a day as completed if all tasks are completed.removeTask(dayName, task)
: Remove a task from a specific day.
Contributing
Contributions to MyList are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on the GitHub repository.
License
This package is licensed under the ISC License. See the LICENSE file for more details.