Skip to content
Official Node.js library for HolidayAPI.pl
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

node-holidayapi

Official Node.js library for HolidayAPI.pl

Installation

npm install --save holidayapi-node

Usage

let HolidayAPI = require('holidayapi-node');
let hApi = new HolidayAPI('YOUR_API_KEY').v1;

let parameters = {
  // Required
  country: 'PL',
  year:    2019,
  // Optional
  // month:    7,
  // day:      4,
  // previous: true,
  // upcoming: true,
  // public:   true,
  // pretty:   true,
};

hApi.holidays(parameters, function (err, data) {
  // Insert awesome code here...
});
You can’t perform that action at this time.