This repository has been archived on 2025-06-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
node-holidayapi/README.md

42 lines
828 B
Markdown

# This repository has moved to [https://github.com/holidayapi/node-holidayapi](https://github.com/holidayapi/node-holidayapi)
**The NPM package has also been renamed from `node-holidayapi` to simply `holidayapi`**
**This repository has been archived.**
---
# node-holidayapi
Official Node.js library for [Holiday API](https://holidayapi.com)
## Installation
```shell
npm install --save node-holidayapi
```
## Usage
```javascript
var HolidayAPI = require('node-holidayapi');
var hapi = new HolidayAPI('_YOUR_API_KEY_').v1;
var parameters = {
// Required
country: 'US',
year: 2016,
// Optional
// month: 7,
// day: 4,
// previous: true,
// upcoming: true,
// public: true,
// pretty: true,
};
hapi.holidays(parameters, function (err, data) {
// Insert awesome code here...
});
```