3.1.1 • Published 2 years ago

wgl-holidays v3.1.1

Weekly downloads
10
License
ISC
Repository
github
Last release
2 years ago

Holidays

Determines whether or not a particular day is one of:

  • New Year’s Day
  • Thanksgiving
  • Christmas
  • Labor Day
  • Memorial Day
  • Independence Day

If New Year’s, Independence Day, or Christmas falls on a weekend, the closest weekday will also be included. For example, if Christmas is on a Saturday, the preceding Friday is considered a holiday. If it is on a Sunday, then the following Monday is a holiday.

Usage

var moment = require('moment');
var Holidays = require('wgl-holidays');
Holidays.isHoliday(moment(new Date()));
3.1.1

2 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.0.0

8 years ago

1.0.0

9 years ago