holiday-jp-since
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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: ,
}, ...]

Develop

To install dependencies:

bun install

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i holiday-jp-since

    Weekly Downloads

    4

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    5.51 kB

    Total Files

    4

    Last publish

    Collaborators

    • to-na