holidayapi-node

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i holidayapi-node

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

3.55 kB

Total Files

4

Last publish

Collaborators

  • szymon.dukla