Provides the official Belgian holidays in NL/FR/DE/EN.
A zero dependency package to get the official Belgian holidays.
bun add @itenium/date-holidays-be
# or
npm install --save @itenium/date-holidays-beAlso see /example dir.
import { isHoliday, getHolidays } from '@itenium/date-holidays-be';
const holiday: boolean = isHoliday(new Date(2023, 0, 1));
const holidays: Holiday[] = getHolidays(2023);type Holiday = {
date: Date;
labels: {
nl: string;
fr: string;
de: string;
en: string;
}
}If you just need to calculate something very specific,
importing date-holidays
results in a whopping 10MB dependency.
This turned out to be a performance issue that came up during our "React Component Profiling" technical session at itenium.
bun install
bun run build
# Run tests
bun testbun run build
npm login # username: itenium
npm publish --access public