New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hebcal/icalendar

Package Overview
Dependencies
Maintainers
1
Versions
97
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

4.9.0
Source
npm
Version published
Weekly downloads
6
50%
Maintainers
1
Weekly downloads
 
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';

const options = {
  year: 2020,
  month: 2,
  sedrot: true,
  candlelighting: true,
  location: Location.lookup('Hawaii'),
};
const events = HebrewCalendar.calendar(options);
console.log(await eventsToIcalendar(ev, options));

Functions

eventToIcal(e, options)string

Transforms a single Event into a VEVENT string

eventsToIcalendarStream(readable, events, options)stream.Readable

Generates an RFC 2445 iCalendar stream from an array of events

eventsToIcalendar(events, options)string

Renders an array of events as a full RFC 2445 iCalendar string

eventToIcal(e, options) ⇒ string

Transforms a single Event into a VEVENT string

Kind: global function
Returns: string - multi-line result, delimited by \r\n

ParamType
eEvent
optionsHebcalOptions

eventsToIcalendarStream(readable, events, options) ⇒ stream.Readable

Generates an RFC 2445 iCalendar stream from an array of events

Kind: global function

ParamType
readablestream.Readable
eventsArray.<Event>
optionsHebcalOptions

eventsToIcalendar(events, options) ⇒ string

Renders an array of events as a full RFC 2445 iCalendar string

Kind: global function
Returns: string - multi-line result, delimited by \r\n

ParamType
eventsArray.<Event>
optionsHebcalOptions

Keywords

ical

FAQs

Package last updated on 28 Jun 2021

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