date-holidays icon indicating copy to clipboard operation
date-holidays copied to clipboard

Not working!

Open paulGeoghegan opened this issue 1 year ago • 1 comments

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 avatar Apr 27 '24 20:04 paulGeoghegan

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

paulGeoghegan avatar Apr 27 '24 20:04 paulGeoghegan

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

commenthol avatar May 04 '24 19:05 commenthol