@hebcal/rest-api
TypeScript icon, indicating that this package has built-in type declarations

6.1.1 • Public • Published

@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));

Readme

Keywords

Package Sidebar

Install

npm i @hebcal/rest-api

Weekly Downloads

88

Version

6.1.1

License

BSD-2-Clause

Unpacked Size

171 kB

Total Files

33

Last publish

Collaborators

  • mjradwin