public-holidays-jp

1.0.3 • Public • Published

public-holidays-jp

Build Status

Installation

npm install --save public-holidays-jp

Usage

const holidaysJp = require('public-holidays-jp');

// Find holidays in 2020.
// Returns Array of Holiday (see below)
let holidays = holidaysJp.getHolidaysInYear(2020);

// Check if 1 Jan. 2020 is a public holiday
// Return true (or false)
let isHoliday = holidaysJp.isHoliday(new Date(2020, 0, 1));

Properties

Holiday

  • date: Date - Date object of the holiday
  • name: String - Name of the holiday
  • hasExtraHoliday: Boolean - Whether to have a extra holiday

License

MIT

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i public-holidays-jp

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    46.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • shun_1218