mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 12:36:33 +00:00
feat: filter out countries without public holidays
Mostly just a type update to allow for the new flag to be passed in. Also updated the dependencies to the latest and greatest.
This commit is contained in:
parent
319d67d84b
commit
d64908041a
6 changed files with 116 additions and 67 deletions
|
@ -103,6 +103,14 @@ holidayApi.holidays({ country: 'US', year: 2019 })
|
|||
holidayApi.countries();
|
||||
```
|
||||
|
||||
#### Fetch only countries with public holidays
|
||||
|
||||
```javascript
|
||||
holidayApi.countries({
|
||||
public: true,
|
||||
});
|
||||
```
|
||||
|
||||
#### Fetch a supported country by code
|
||||
|
||||
```javascript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue