schedule-list

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i schedule-list

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.85 kB

Total Files

3

Last publish

Collaborators

  • vanessabewe