1.0.19 • Published 9 months ago

holiday-country v1.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Holiday Country

Description

holiday-country is an npm package that allows you to fetch country-specific holidays by year. It retrieves holiday data from a JSON repository hosted on AWS S3.

Installation

You can install this package via npm:

npm install holiday-country

Usage

To use the getHolidays function, you need to import it and call it with the country code and the desired year. Here’s an example:

import { getHolidays } from "holiday-country";

(async () => {
  try {
    const holidays = await getHolidays("lk", 2024);
    console.log(holidays);
  } catch (error) {
    console.error(error.message);
  }
})();

Country Codes

You can find the list of country codes at the following URL:

Country Codes JSON

This will help users find the appropriate country code to use when calling the getHolidays function.

Contributing

We welcome contributions! If you’d like to contribute to the project, please fork the repository and submit a pull request. Feel free to open issues for bugs or feature requests.

License

This project is licensed under the ISC License - see the LICENSE file for details.

1.0.19

9 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.11

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago