Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
▸ 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
▸ 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 965 weekly downloads. As such, date-fns-holiday-us popularity was classified as not 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.