commenthol / date-holidays

worldwide holidays
https://commenthol.github.io/date-holidays/
Other
911 stars 236 forks source link

Get holidays by faith #367

Open dmwelch opened 1 year ago

dmwelch commented 1 year ago

Hi team,

I'd like to use this package to support my scout troop, which consists of Christians, Jews, and Hindus currently. In addition to our region, I'd also like to include the holidays for the faiths we represent so we can plan our annual program without excluding any group over another. How would that best be done?

Cheers, Scoutmaster Dave

commenthol commented 1 year ago

Hi @dmwelch, I'd recommend you to start your own calendar with date-holidays-parser. Please take a look at https://github.com/commenthol/date-holidays-parser/blob/master/test/fixtures/custom.yaml and https://github.com/commenthol/date-holidays-parser/blob/master/test/Holidays.mocha.js#L18 on putting things together. For conversion from yaml to json you might want to use the CLI of js-yaml.