This package has been deprecated

Author message:

WARNING: This module has been renamed to holidayapi. Please install it instead. See https://github.com/holidayapi/node-holidayapi for more information.

node-holidayapi

1.0.3 • Public • Published

This repository has moved to 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

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...
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-holidayapi

      Weekly Downloads

      5

      Version

      1.0.3

      License

      MIT

      Unpacked Size

      3.56 kB

      Total Files

      4

      Last publish

      Collaborators

      • joshtronic