1.0.3 • Published 2 years ago
public-holidays-jp v1.0.3
public-holidays-jp
Installation
npm install --save public-holidays-jpUsage
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