
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
date-fns-holiday-us
Advanced tools
The purpose of this project is to give an interface to work with holidays using date-fns
The purpose of this project is to give an interface to work with holidays using date-fns
yarn add date-fns-holiday-us date-fns
or with npm:
npm i date-fns-holiday-us date-fns
Ƭ Holiday: "christmas"
| "easter"
| "halloween"
| "valentinesDay"
| "mothersDay"
| "columbusDay"
| "independenceDay"
| "presidentsDay"
| "laborDay"
| "veteransDay"
| "thanksgiving"
| "newYearsEve"
| "martinLutherKingJrDay"
| "newYearsDay"
| "fathersDay"
| "memorialDay"
| "goodFriday"
| "juneteenth"
Ƭ Holidays: { [K in Holiday]: Object }
▸ getBankHolidays(year
): Object
Name | Type |
---|---|
year | number |
Object
▸ getChristmas(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getColumbusDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getEaster(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getFathersDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getFederalHolidays(year
): Object
Name | Type |
---|---|
year | number |
Object
▸ getGoodFriday(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getHalloween(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getHolidays(year
): Holidays
Name | Type |
---|---|
year | number |
▸ getIndependenceDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getJuneteenth(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getLaborDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getMartinLutherKingJrDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getMemorialDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getMothersDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getNewYearsDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getNewYearsEve(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getObservedHolidays(year
): Record
<string
, Record
<"date"
, Date
>>
Name | Type |
---|---|
year | number |
Record
<string
, Record
<"date"
, Date
>>
▸ getPresidentsDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getThanksgiving(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getValentinesDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ getVeteransDay(year
): Date
Name | Type |
---|---|
year | number |
Date
▸ isBankHoliday(date
): boolean
Name | Type |
---|---|
date | Date |
boolean
▸ isFederalHoliday(date
): boolean
Name | Type |
---|---|
date | Date |
boolean
▸ isHoliday(date
): boolean
Name | Type |
---|---|
date | Date |
boolean
▸ isInHolidayList(date
, getHolidayList
): boolean
Name | Type |
---|---|
date | Date |
getHolidayList | (year : number ) => { [key: string] : { date : Date }; } |
boolean
© 2020 Jon Stuebe
FAQs
The purpose of this project is to give an interface to work with holidays using date-fns
The npm package date-fns-holiday-us receives a total of 2,718 weekly downloads. As such, date-fns-holiday-us popularity was classified as popular.
We found that date-fns-holiday-us 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.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.