farhan-ibrahim / date-fns-holiday-my

An interface to work with holidays using date-fns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

date-fns-holiday-my

The purpose of this project is to give an interface to work with holidays using date-fns Inspired from date-fns-holiday-us

Install

yarn add date-fns-holiday-my date-fns

or with npm:

npm i date-fns-holiday-my date-fns

API

Type aliases

Functions

Type aliases

Holiday

Ƭ Holiday: "christmas" | "easter" | "halloween" | "valentinesDay" | "mothersDay" | "columbusDay" | "independenceDay" | "presidentsDay" | "laborDay" | "veteransDay" | "thanksgiving" | "newYearsEve" | "martinLutherKingJrDay" | "newYearsDay" | "fathersDay" | "memorialDay" | "goodFriday" | "juneteenth"

Defined in index.ts:13


Holidays

Ƭ Holidays: object

Defined in index.ts:139

Type declaration:

Functions

getChristmas

getChristmas(year: number): Date

Defined in index.ts:99

Parameters:

Name Type
year number

Returns: Date


getHolidays

getHolidays(year: number): Holidays

Defined in index.ts:147

Parameters:

Name Type
year number

Returns: Holidays


getLaborDay

getLaborDay(year: number): Date

Defined in index.ts:103

Parameters:

Name Type
year number

Returns: Date


getNewYearsDay

getNewYearsDay(year: number): Date

Defined in index.ts:123

Parameters:

Name Type
year number

Returns: Date


About

An interface to work with holidays using date-fns

License:MIT License


Languages

Language:TypeScript 90.9%Language:JavaScript 9.1%