Skip to content

alibaba-xux/chinese-workday

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chinese-workday

今天要上班吗?

Build Status

Install

$ npm install chinese-workday

Usage

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

isWorkday('2018-10-01')
// => false
isHoliday('2018-10-01')
// => true
getFesival('2018-10-01')
// => 国庆节

Note: Since 2018

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%