@holiday-jp/holiday_jp
npm i @holiday-jp/holiday_jp

@holiday-jp/holiday_jp

Japanese holiday.

by holiday-jp

2.3.0 (see all)License:MITTypeScript:Built-InCategories:Vanilla JavaScript Holidays
npm i @holiday-jp/holiday_jp
Readme

holiday_jp JavaScript test

Get holidays in Japan.

Install

$ npm install @holiday-jp/holiday_jp

Usage

In HTML

<script src="./your/own/path/holiday_jp.js"></script>
<script>
var holidays = holiday_jp.between(new Date('2010-09-14'), new Date('2010-09-21'));
console.log(holidays[0]['name']); // 敬老の日
</script>

In Node

var holiday_jp = require('@holiday-jp/holiday_jp');
var holidays = holiday_jp.between(new Date('2010-09-14'), new Date('2010-09-21'));
console.log(holidays[0]['name']); // 敬老の日

In TypeScript

import * as holiday_jp from '@holiday-jp/holiday_jp';
const holidays = holiday_jp.between(new Date('2010-09-14'), new Date('2010-09-21'));
console.log(holidays[0]['name']); // 敬老の日

Downloads/wk

10.3K

GitHub Stars

58

LAST COMMIT

3mos ago

MAINTAINERS

2

CONTRIBUTORS

4

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
2.3.0
latest
2yrs ago
No tutorials found
Add a tutorial