holidayapi-node
v1.0.0
Published
Official Node.js library for HolidayAPI.pl
Downloads
8
Maintainers
Readme
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...
});