DEPRECATED - Official Node.js library for Holiday API https://github.com/holidayapi/node-holidayapi
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.
Find a file
2016-08-20 14:04:03 -05:00
.gitignore Initial commit 2016-08-08 23:55:29 -05:00
index.js Q&D wrapper 2016-08-20 13:40:12 -05:00
LICENSE Initial commit 2016-08-08 23:55:29 -05:00
package.json Spruced up readme, bumped version 2016-08-20 13:46:16 -05:00
README.md Fixed README 2016-08-20 14:04:03 -05:00

node-holidayapi

Official Node.js library for Holiday API

Installation

npm install --save node-holidayapi

Usage

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,
};

var hapi.holidays(parameters, function (err, data) {
  // Insert awesome code here...
});