1.0.5 • Published 4 years ago

holiday-lk v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

holiday-lk

Holidays in Sri Lanka holiday-lk

Installation

npm install holiday-lk

Usage

var holiday = require('holiday-lk')

// find holidays between 2019-01-10 ~ 2019-01-20
// returns Array of Object (see below for their properties)
holiday.between(new Date("2019-01-10"), new Date("2019-01-20"))

// whether given date is holiday or not
// return true (or false)
holiday.isHoliday(new Date("2019-02-25"))

Properties

  • dayName: String - day of the week (ex. "Sunday")
  • date: Date - Date object of the holiday (ex. 2019-02-04T00:00:00.000Z)
  • name: String - name of the holiday (ex. "National Day")

License

MIT

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago