An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# holiday [![Build Status](https://travis-ci.org/bukinoshita/holiday.svg?branch=master)](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)