za-holidays

0.0.1 • Public • Published

za-holidays

outputs public holidays for each month in South Africa based on https://www.gov.za/about-sa/public-holidays

npm install --save za-holidays

Author

Hirokazu Hirono

Usage

var zh = require('za-holidays');

zh.year;
//=> year for holidays to display

zh.jan();
//=> [{ date: 1, title: "New Year's Day", day: 'Mon' }]

zh.feb();
//=> []

zh.mar();
//=> [
//    { date: 21, title: 'Human Rights Day', day: 'Wed' },
//    { date: 30, title: 'Good Friday', day: 'Fri' }
//  ]
As you might guess, methods are named after each month.
for example, if you invoke zh.dec(), it will return all the holidays in December.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i za-holidays

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

102 kB

Total Files

5

Last publish

Collaborators

  • hirohiro2255