Socket
Socket
Sign inDemoInstall

holidays

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holidays

Calculates holidays in a given year, currently only supports Icelandic holidays.


Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

holidays

Build Status

Calculates holidays in a given year, currently only supports Icelandic holidays.

Example

var holidays = require('holidays');
var dates = holidays(2013);
console.dir(dates);

[ Tue Jan 01 2013 00:00:00 GMT+0000 (GMT),
  Thu Mar 28 2013 00:00:00 GMT+0000 (GMT),
  Fri Mar 29 2013 00:00:00 GMT+0000 (GMT),
  Sun Mar 31 2013 00:00:00 GMT+0000 (GMT),
  Mon Apr 01 2013 00:00:00 GMT+0000 (GMT),
  Thu Apr 25 2013 00:00:00 GMT+0000 (GMT),
  Wed May 01 2013 00:00:00 GMT+0000 (GMT),
  Thu May 09 2013 00:00:00 GMT+0000 (GMT),
  Sun May 19 2013 00:00:00 GMT+0000 (GMT),
  Mon May 20 2013 00:00:00 GMT+0000 (GMT),
  Mon Jun 17 2013 00:00:00 GMT+0000 (GMT),
  Mon Aug 05 2013 00:00:00 GMT+0000 (GMT),
  Tue Dec 24 2013 13:00:00 GMT+0000 (GMT),
  Wed Dec 25 2013 00:00:00 GMT+0000 (GMT),
  Thu Dec 26 2013 00:00:00 GMT+0000 (GMT),
  Tue Dec 31 2013 13:00:00 GMT+0000 (GMT) ]

Methods

var holidays = require('holidays')

holidays(year)

Return an array with the holidays for a given year. Note that the hour part specifies after which hour in the day is it becomes a holiday.

Install

With npm do:

npm install holidays

License

MIT

Thanks

  • Árni Hermann for telling me that there is a function for calculating holidays.
  • Steinar Hugi for giving me a python implementation.

FAQs

Package last updated on 23 May 2013

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