Socket
Socket
Sign inDemoInstall

@itenium/date-holidays-be

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @itenium/date-holidays-be

Zero dependency functions to determine the official Belgian holidays for a given year in NL/FR/EN/DE


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

date-holidays-be

Provides the official Belgian holidays in NL/FR/DE/EN.

A zero dependency package to get the official Belgian holidays.

Install

npm install --save @itenium/date-holidays-be

Use

import { isHoliday, getHolidays } from '@itenium/date-holidays-be';

const holiday: boolean = isHoliday(new Date(2023, 0, 1));
const holidays: Holiday[] = getHolidays(2023);

Typings

type Holiday = {
  date: Date;
  labels: {
    nl: string;
    fr: string;
    de: string;
    en: string;
  }
}

Motivation

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.

Development

npm install
npm run build

# Run tests
npm t

Publish

date-holidays-be @ npmjs.com

npm run build
npm login  # username: itenium
npm publish --access public

Keywords

FAQs

Last updated on 18 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc