1.0.0 • Published 6 years ago
fun-holidays v1.0.0
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}!`);
}
1.0.0
6 years ago