holiday-fns

1.0.1 • Public • Published

holiday-fns

sometimes you want to know the 5th business day of the month. sometimes there are holidays. hmm.

working days = no weekends and no holidays -- didn't want to get confused with date-fns business day features.

you need to pass in your own holidays. see example-holidays.json

functions

eachHolidayOfInterval

list out all the holidays between two dates

eachWorkingDayOfInterval

list all working days (no weekends or holidays)

addWorkingDays

add some number of working days to a date

isWorkingDay

is the day a working day

getWorkingDate

get the x working day starting at a day -- like get me the 5th working day of the month

/holiday-fns/

    Package Sidebar

    Install

    npm i holiday-fns

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.71 kB

    Total Files

    5

    Last publish

    Collaborators

    • llad