Skip to content

igogo5yo/is-us-holiday-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is date a US bank holiday (lightweight)

NPM NPM

☕ Sponsor me ❤️

This 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published