Quartz holidays
Determine if a day is a Quartz holiday.
const { isHoliday } = require( '@quartz/holidays' );
isHoliday() && console.log( '🙌' );
isHoliday( undefined, { weekends: true } ) && console.log( '🏕️' );
isHoliday( new Date( '2018-07-04' ) ) && console.log( '🎆' );
Or get a list of all Quartz holidays for a given year. Note that dateString
is
formatted like the return values of getDate
and getMonth
. The date
property is a Date
instance.
const { getHolidays } = require( '@quartz/holidays' );
console.log( getHolidays( '2019' ) );