Skip to content

Jewish holidays and Hebrew calendar exports as RSS, CSV, and FullCalendar.io objects, and more

License

Notifications You must be signed in to change notification settings

hebcal/hebcal-rest-api

Repository files navigation

@hebcal/rest-api

Jewish holidays and Hebrew calendar as plain JSON objects, RSS, and CSV export

Build Status

Installation

$ npm install @hebcal/rest-api

Synopsis

import {HebrewCalendar, Location} from '@hebcal/core';
import {eventsToClassicApi, eventsToCsv} from '@hebcal/rest-api';

const options = {
  year: 2020,
  month: 2,
  sedrot: true,
  candlelighting: true,
  location: Location.lookup('Hawaii'),
};
const events = HebrewCalendar.calendar(options);
const apiResult = eventsToClassicApi(events, options);

console.log(JSON.stringify(apiResult));

const csv = eventsToCsv(events, options);
console.log(JSON.stringify(csv));

About

Jewish holidays and Hebrew calendar exports as RSS, CSV, and FullCalendar.io objects, and more

Resources

License

Stars

Watchers

Forks

Packages

No packages published