Socket
Socket
Sign inDemoInstall

holidays-cz

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holidays-cz

Returns holidays and name days on a specified date (cz)


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

holidays-cz

Returns holidays and name days on a specified date (cz)

Instalation

npm install holidays-cz

Methods

HolidaysCz.getHolidays([Date date])

Get holidays on specified date.

HolidaysCz.getNamedays([Date date])

Get name days on specified date.

HolidaysCz.getAll([Date date])

Get holidays and name days on a specified date.

Example

var HolidaysCz = require('holidays-cz');
var date = new Date(2015, 11, 24);

// returns: [ 'Štědrý den' ]
console.log(HolidaysCz.getHolidays(date));

// returns: [ 'Adam', 'Eva' ]
console.log(HolidaysCz.getNamedays(date));

// returns: { holidays: [ 'Štědrý den' ], namedays: [ 'Adam', 'Eva' ] }
console.log(HolidaysCz.getAll(date));

Keywords

FAQs

Package last updated on 21 Aug 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc