Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Calculates holidays in a given year, currently only supports Icelandic holidays.
Calculates holidays in a given year, currently only supports Icelandic holidays.
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) ]
var holidays = require('holidays')
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.
With npm do:
npm install holidays
MIT
FAQs
Calculates holidays in a given year, currently only supports Icelandic holidays.
The npm package holidays receives a total of 2 weekly downloads. As such, holidays popularity was classified as not popular.
We found that holidays demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.