Socket
Socket
Sign inDemoInstall

@hebcal/icalendar

Package Overview
Dependencies
3
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hebcal/icalendar

Jewish holidays and Hebrew calendar as iCalendar RFC 2445


Version published
Weekly downloads
1
decreased by-90%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 20 Feb 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc