Neurotoxin Powered Marketing

    @holiday-jp/holiday_jp
    TypeScript icon, indicating that this package has built-in type declarations

    2.3.0 • Public • Published

    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']); // 敬老の日

    Keywords

    Install

    npm i @holiday-jp/holiday_jp

    DownloadsWeekly Downloads

    7,227

    Version

    2.3.0

    License

    MIT

    Unpacked Size

    876 kB

    Total Files

    30

    Last publish

    Collaborators

    • komagata
    • k1low