public-holidays-jp
v1.0.3
Published
Public holidays
Downloads
2
Readme
public-holidays-jp
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 holidayname: String
- Name of the holidayhasExtraHoliday: Boolean
- Whether to have a extra holiday
License
MIT