1.0.0 • Published 6 years ago

fun-holidays v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

fun-holidays

Simple node js module that will give a fun holiday for a specified date

Example:

const holidays = require('fun-holidays');
const todaysHoliday = holidays();
const tomorrowsHoliday = holidays(new Date() + 1);

if(todaysHoliday) {
  console.log(`Today is ${todaysHoliday.name}!`);
}

if(tomorrowsHoliday) {
  console.log(`Tomorrow is ${tomorrowsHoliday.name}!`);
}