commenthol / date-holidays

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

Not working! #476

Closed paulGeoghegan closed 2 months ago

paulGeoghegan commented 2 months ago

I've been trying to get the package working with no luck. I'm running BUN 1.1.4 and a Sveltekit app. I'm just trying to print out the list of Holidays in Ireland for the year. Here is my code:

    function getUnavailableDates() {
        let hd = new Holidays();
        hd.init('IE');
        let holidays = hd.getHolidays(2024);
        console.log(holidays);
    }
    getUnavailableDates();

Whenever I run this though I'm just getting an empty list back.

paulGeoghegan commented 2 months ago

Also I have tried other countries and years but I still get an empty list.

commenthol commented 2 months ago

This is a node package. Please use node instead of bun.