holiday-jp-since
2022 年以降の日本の祝日を取得するライブラリ
Note
- 軽量化のため、2022 年以降のデータのみサポートしています。
Usage
import { getHolidaysOfYear, getHolidaysBetweenYears } from "holiday-jp-since";
const hoildays2024 = getHolidaysOfYear(2024);
const holidays2024To2099 = getHolidaysOfYear(2024, 2099);
返ってくる値は次のフォーマットです。
[{
holidayType: HOLIDAY_TYPE.FIXED,
name: "元日",
year: 2024,
month: 1,
day: 1,
}, ...]
Develop
To install dependencies:
bun install