calendarific

1.3.9 • Public • Published

node-calendarific

Node.js library for Calendarific API

Installation

npm install --save node-calendarific

or just

npm install node-calendarific

Usage

 
// Load the package
const Calendarific = require('node-calendarific');
 
// Initlize with an API key
const clapi = new Calendarific('_YOUR_API_KEY_');
 
const parameters = {
  country: 'US',
  year:    2019,
};
 
clapi.holidays(parameters, function (data) {
  console.log(data)
  // Insert awesome code here...
});

Package Sidebar

Install

npm i calendarific

Weekly Downloads

2,667

Version

1.3.9

License

MIT

Unpacked Size

3.6 kB

Total Files

4

Last publish

Collaborators

  • ryancli