Public
Versions
- Open: VersionChanges from v4 to v5+3-1export const getHolidays = (country, year = new Date().getFullYear()) => {try {
return stevekrouse.fetchJSON(`https://date.nager.at/api/v2/publicholidays/${year}/${country}`);⦚ 4 unchanged lines ⦚import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";export const getHolidays = (country, year = new Date().getFullYear()) => {try {return fetchJSON(`https://date.nager.at/api/v2/publicholidays/${year}/${country}`);⦚ 4 unchanged lines ⦚ - Open: Version+9-0export const getHolidays = (country, year = new Date().getFullYear()) => {try {return stevekrouse.fetchJSON(`https://date.nager.at/api/v2/publicholidays/${year}/${country}`);} catch (err) {return null;}};
Updated: October 23, 2023