taiwan-holiday

let me help you find out it's taiwan holiday or not.

Usage no npm install needed!

<script type="module">
  import taiwanHoliday from 'https://cdn.skypack.dev/taiwan-holiday';
</script>

README

Coverage Status Build Status

taiwan-holiday.js

let me help you find out it's taiwan holiday or not.

Use

// use project static data
const holiday = require('taiwan-holiday');

holiday.init()
    .then(() => {
        holiday.isHoliday('2018/1/1');
    });
// useCustom temp dir
const holiday = require('taiwan-holiday');

holiday.init({temp_dir: './my-tmp'})
    .then(() => {
        holiday.isHoliday('2018/1/1');
    });