Socket
Socket
Sign inDemoInstall

noliday

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    noliday

A library for calculating the dates of national holidays.


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
4.17 MB
Created
Weekly downloads
 

Readme

Source

npm version

noliday

A library for calculating the dates of national holidays

Table of contents

Installation

$ npm install noliday

Usage

import noliday, { Country } from 'noliday'

const holidays = noliday.getHolidays({ year: 2022, country: Country.Netherlands})

console.log(holidays)
{
  'Ascension Day': 2022-05-26T00:00:00.000Z,
  'Boxing Day': 2022-12-26T00:00:00.000Z,
  'Christmas Day': 2022-12-25T00:00:00.000Z,
  'Easter Monday': 2022-04-18T00:00:00.000Z,
  'Easter Sunday': 2022-04-17T00:00:00.000Z,
  'Good Friday': 2022-04-15T00:00:00.000Z,
  'Kingsday (NL)': 2022-04-27T00:00:00.000Z,
  'Liberation Day (NL)': 2022-05-05T00:00:00.000Z,
  "New Year's Day": 2022-01-01T00:00:00.000Z,
  'Whit Monday': 2022-06-06T00:00:00.000Z,
  'Whit Sunday': 2022-06-05T00:00:00.000Z
}

API

getHolidays

getHolidays(options: { year: number, country: Country }): { holiday: Holiday, date: Date }[]

isHoliday

isHolday(options: { date: NDate, country: Country }): boolean

Types and enums

FAQs

Last updated on 03 Jul 2022

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