Hong Kong Holiday
- List of Hong Kong Holiday between 2018-2020.
- Determine is the day is holiday or not.
- Show Hong Kong Holiday Information.
Install
#NPM npm i holiday-hk --save
Example
const holidayHK = ; // Fetch all Hong Kong Holiday listholidayHK; // Return Holiday List [{date: Date, desEn: String, desZH: String, desSc: String}...] // Determine Is the day is holiday or notconst xmas = "2020-12-25"; // XamsholidayHK; // Retrun true const sunday = "2020-03-15"; // SundayholidayHK; // Retrun false, Because it is Sunday const workday = "2020-12-28"; // WorkdayholidayHK; // Retrun false, Because it is Workday const xmas = "2020-12-25"; // XamsholidayHK; // Return {date: Date, desEn: String, desZH: String, desSc: String}
Method
Method | Return Type |
---|---|
listAll() | Array |
isHoliday() | Boolean |
getHolidayInfo() | Object |
Properties
Property | Type | Example |
---|---|---|
date | Date | 2020-12-26T00:00:00.000Z |
desEn | String | Christmas Day |
desZh | String | 聖誕節 |
desSc | String | 圣诞节 |
License
MIT
ChangeLog
End
Free Hong Kong, Revolution now
Five demands, not one less