Slovak public holidays

Slovak public holidays is another small project I have been working on. It is a NPM module which is able to calculate Slovak public holidays since 1993 to the future. It is pure Node.js code without any dependencies.

Source code is available on GitLab.
Available also in NPM registry to download.

Usage

API

Calculate if a given date|object is a holiday.

parameter

  • date - instance of Javascript Date object
  • object - holiday object {year: integer, month: integer: day: integer}


Returns all holidays for a given year chronologically.


Returns a holiday name for a given date|object if a holiday, otherwise null.

parameter

  • date - instance of Javascript Date object
  • object - holiday object {year: integer, month: integer: day: integer}
  • locale - iso2 string of language to translate a holiday name ('sk', 'en','de' supported)