1.0.4 • Published 4 years ago

my-holidays v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

my-holidays

NPM

Malaysian Holidays Calendar

Sample

List all holidays

const MyHolidays = require('my-holidays');
const holiday    = new MyHolidays(2018);
const result     = holidays.list()

Check date for holiday

const MyHolidays = require('my-holidays');
const holiday   = new MyHolidays(2018);
const result    = holidays.check("20180101")
{ "date": "2017-12-31T16:00:00.000Z",
  "name": "New Year\'s Day",
  "includes": [ "National" ],
  "excludes": [ "Johor", "Kedah", "Kelantan", "Perlis", "Terengganu" ] }

source

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago