Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@hebcal/icalendar

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/icalendar

Jewish holidays and Hebrew calendar as iCalendar RFC 2445

latest
Source
npmnpm
Version
6.1.4
Version published
Maintainers
1
Created
Source

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

API Documentation

Keywords

ical

FAQs

Package last updated on 29 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts