https://github.com/bukinoshita/holiday
:calendar: List of Federal Public Holidays in 2017
https://github.com/bukinoshita/holiday
holidays javascript nodejs
Last synced: 9 months ago
JSON representation
:calendar: List of Federal Public Holidays in 2017
- Host: GitHub
- URL: https://github.com/bukinoshita/holiday
- Owner: bukinoshita
- License: mit
- Created: 2017-02-25T16:33:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T09:57:17.000Z (almost 5 years ago)
- Last Synced: 2025-02-28T07:51:10.223Z (9 months ago)
- Topics: holidays, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 213 KB
- Stars: 1
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# holiday [](https://travis-ci.org/bukinoshita/holiday)
> List of Federal Public Holidays in 2017
## Install
```bash
$ yarn add holiday
```
## Usage
```js
const holiday = require('holiday')
// today: 1/1/2017
await holiday()
// => New Years Day
```
## API
### holiday([options])
#### options
Type: `object`
##### country
Type: `string`
Default: `us`
Options: `us` and `br`
Country holiday
##### range
Type: `string`
Default: `day`
Options: `day` || `month` || `year`
## Related
- [is-holiday](https://github.com/bukinoshita/is-holiday) — Get todays Federal Public Holidays
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)