Socket
Socket
Sign inDemoInstall

@hebcal/icalendar

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


Version published
Weekly downloads
8
decreased by-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

FAQs

Package last updated on 02 Jul 2023

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc