commenthol / date-holidays-parser

parser for worldwide holidays
ISC License
46 stars 23 forks source link

Custom holiday list #29

Closed misomighty closed 3 years ago

misomighty commented 3 years ago

My company's business logic requires me to filter for only major holidays and a few local city holidays. I've tried filtering the array from hd.getHolidays() and then setting the new filtered array of holidays but i'm still getting all of the holidays.

Is there a way to overwrite the current holiday array?

commenthol commented 3 years ago

You are free to create your own list of rules for your required holidays. An example is provided in test/Holidays.mocha.js using test/fixtures/custom.json.