1.0.0 • Published 1 year ago

calendar-dw-scheduler v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Calendar DW Scheduler

Calendar DW Scheduler is a simple module for scheduling events and checking if events are scheduled for today.

Installation

You can install Calendar DW Scheduler via npm:

npm install calendar-dw-scheduler

Usage

const calendarScheduler = require('calendar-dw-scheduler');

// Example usage:
const eventDate = new Date('2024-03-04');
calendarScheduler.scheduleEvent('Meeting', eventDate);
calendarScheduler.isEventScheduledForToday('Meeting', eventDate);

API

scheduleEvent(eventName, eventDate)

Schedules an event with the specified name for the given date.

  • eventName: The name of the event.
  • eventDate: The date object representing the event's date.

isEventScheduledForToday(eventName, eventDate)

Checks if the event with the specified name is scheduled for today's date.

  • eventName: The name of the event.
  • eventDate: The date object representing the event's date.

Dependencies

This module relies on the dateworkutil package for date-related functionalities.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.0

1 year ago