1.1.7 • Published 4 months ago

best-holiday v1.1.7

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 months ago

npm version npm downloads npm license

best-holiday

Holidays and JavaScript; now Customizable and Effortless

About

Best-Holiday aims to make it easier for developers to interact with holidays in their applications. Best-Holiday can be used via the npm package or through the CDN for browser use.

The list of holidays can be found in src/index.ts. Holidays have four attributes:

  • name: Name of the holiday
  • date: Date of the holiday
  • country: Country where the holiday is
  • type: Type of the holiday

Installation

Installing Best-Holiday is simple.

npm In your project directory, run:

npm install best-holiday

yarn In your project directory, run:

yarn add best-holiday

If you want to use Best-Holiday in the browser environment, include this script tag in your HTML document:

<script src="https://cdn.jsdelivr.net/npm/best-holiday@latest/dist/browser/best-holiday.min.js"></script>

Usage

The Best-Holiday package currently exports six main functions:

  • getHolidaysForDays: Returns an array of holidays for a given date
  • getHolidaysInRange: Returns an array of holidays for a given range
  • searchHolidays: Returns an array of holidays for a given search query
  • getEasterRelatedHoliday: Returns the Easter related holiday
  • addHoliday: Adds a new holiday
  • removeHoliday: Removes a holiday

For more detailed information about usage, refer to the Wiki.

License

GPL-3.0-or-later

Contributors


© 2024 The-Best-Codes

1.1.7

4 months ago

1.1.6

7 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

10 months ago

1.0.10

10 months ago

1.0.8

10 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago