chinese-workday
TypeScript icon, indicating that this package has built-in type declarations

1.10.0 • Public • Published

chinese-workday

今天要上班吗?

Build Status

Install

$ npm install chinese-workday

Usage

// const { isWorkday, isHoliday, getFestival } = require('chinese-workday');
const ww = require('chinese-workday');
const isWorkday = ww.isWorkday;
const isHoliday = ww.isHoliday;
const getFestival = ww.getFestival;
const isAddtionalWorkday = ww.isAddtionalWorkday;

isWorkday('2022-10-01')
// => false
isHoliday('2022-10-01')
// => true
isAddtionalWorkday('2022-01-29')
// => true
getFestival('2022-10-01')
// => 国庆节

Note: Since 2018

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i chinese-workday

    Weekly Downloads

    39

    Version

    1.10.0

    License

    MIT

    Unpacked Size

    12.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • yize