1.0.4 • Published 5 months ago
is-us-holiday-light v1.0.4
Is date a US bank holiday (lightweight)
is-us-holiday-light
is a lightweight JavaScript library to check if a given date is a US holiday.
Installation
You can install the library using npm:
npm install is-us-holiday-light
Or using yarn:
yarn add is-us-holiday-light
Usage
import { isUsHoliday } from 'is-us-holiday-light';
const date = new Date('2023-07-04');
console.log(isUsHoliday(date)); // true, because it's Independence Day
Supported Holidays
- New Year's Day
- Independence Day
- Veterans Day
- Election Day
- Christmas Eve
- Christmas Day
- Good Friday
- Juneteenth
- Martin Luther King Jr. Day
- Presidents' Day
- Memorial Day
- Labor Day
- Columbus Day
- Thanksgiving Day
- Day after Thanksgiving Day
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License.