my-holidays

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i my-holidays

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

31.1 kB

Total Files

5

Last publish

Collaborators

  • scr1p7ed