0.3.1 • Published 8 years ago

liberty v0.3.1

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

liberty

Adapted from Alex Dunae's holidays gem. Calculate the statutory holidays on a given day or in a date range.

Holidays are defined by iCalendar recurrence rules.

Implemented rules:

  • Canada
  • New Zealand
  • US

Usage

var Liberty = require('liberty'),
    holidays = new Liberty('ca');

holidays.on(new Date(2008, 8, 1)); // returns [ { name: 'Labour Day', date: Date } ]
holidays.between('2008-10-1', '2008-11-30') // returns Thanksgiving & Remembrance Day

Accepts anything moment will accept.

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.1

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago