mirror of
https://github.com/holidayapi/holidayapi-node.git
synced 2025-06-21 12:36:33 +00:00
feat: add workdays endpoint
Added support for our new workdays endpoint that allows you to pull the number of working days that occur between two dates. In addition to the new endpoint: * chore: upgraded dependencies. * ci: dropped Node.js 10 because it past EOL. * ci: swapped Node.js 15 for 16 now that it's out. * docs: added example of new endpoint.
This commit is contained in:
parent
fa2f709f82
commit
bbda365fe7
7 changed files with 9755 additions and 3312 deletions
12
README.md
12
README.md
|
@ -251,3 +251,15 @@ holidayApi.workday({
|
|||
days: 7,
|
||||
});
|
||||
```
|
||||
|
||||
### Workdays
|
||||
|
||||
#### Fetch number of workdays between two dates
|
||||
|
||||
```javascript
|
||||
holidayApi.workday({
|
||||
country: 'US',
|
||||
start: '2019-07-01',
|
||||
end: '2019-07-10',
|
||||
});
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue