my-holidays
v1.0.4
Published
Malaysian Holidays Calendar
Downloads
12
Readme
my-holidays
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" ] }