1.0.0 • Published 6 years ago

node-calendarindex v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

node-calendarindex

Node.js library for CalendarIndex API

Installation

npm install --save node-calendarindex

Usage

// Load the package
var CalendarIndex = require('node-calendarindex');

// Initlize with an API key
var clapi = new CalendarIndex('_YOUR_API_KEY_');

var parameters = {
  // Required
  country: 'US',
  year:    2019,
  // Optional
  // state: CA,
  // region: LA
};

clapi.holidays(parameters, function (data) {
  console.log(data)
  // Insert awesome code here...
});