Official Node.js library for Holiday API
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit e4b27db Aug 31, 2016
Permalink
Failed to load latest commit information.
.gitignore Initial commit Aug 9, 2016
LICENSE Initial commit Aug 9, 2016
README.md Fixed up README Aug 31, 2016
index.js Q&D wrapper Aug 20, 2016
package.json Bumped version Aug 31, 2016

README.md

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

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