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

6.0.2 • Public • Published

@hebcal/icalendar

Jewish holidays and Hebrew calendar as iCalendar RFC 2445

Installation

$ npm install @hebcal/icalendar

Synopsis

import {HebrewCalendar, Location} from '@hebcal/core';
import {eventsToIcalendar} from '@hebcal/icalendar';
import fs from 'fs';

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

const str = await eventsToIcalendar(events, {
  locale: 'he',
  ...options,
})

const icalStream = fs.createWriteStream('feed.ics');
icalStream.write(str);
icalStream.close();

/@hebcal/icalendar/

    Package Sidebar

    Install

    npm i @hebcal/icalendar

    Weekly Downloads

    14

    Version

    6.0.2

    License

    BSD-2-Clause

    Unpacked Size

    22.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • mjradwin