calendar-dw-scheduler

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i calendar-dw-scheduler

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

3

Last publish

Collaborators

  • makarenkoyana