Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@hebcal/icalendar
Advanced tools
Jewish holidays and Hebrew calendar as iCalendar RFC 2445
$ npm install @hebcal/icalendar
import {HebrewCalendar, Location} from '@hebcal/core';
import icalendar from '@hebcal/icalendar';
const options = {
year: 2020,
month: 2,
sedrot: true,
candlelighting: true,
location: Location.lookup('Hawaii'),
};
const events = HebrewCalendar.calendar(options);
console.log(icalendar.eventsToIcalendar(ev, options));
Main interface to hebcal/icalendar
Intl.DateTimeFormat
string
number
string
string
Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
string
Returns just the date portion as YYYY-MM-DD
string
Returns a string like "2018-09-01T12:30:00-05:00'"
Array.<string>
Returns a category and subcategory name
string
string
string
Returns UTC string for iCalendar
string
string
string
Renders an Event as a string
Object
Converts a Hebcal event to a FullCalendar.io object
Main interface to hebcal/icalendar
Intl.DateTimeFormat
Kind: global function
Param | Type |
---|---|
tzid | string |
string
Kind: global function
Param | Type |
---|---|
tzid | string |
date | Date |
number
Kind: global function
Param | Type |
---|---|
tzid | string |
date | Date |
string
Kind: global function
Param | Type |
---|---|
number | number |
string
Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
Kind: global function
Param | Type |
---|---|
tzid | string |
date | Date |
string
Returns just the date portion as YYYY-MM-DD
Kind: global function
Param | Type |
---|---|
d | Date |
string
Returns a string like "2018-09-01T12:30:00-05:00'"
Kind: global function
Param | Type | Description |
---|---|---|
date | Date | |
timeStr | string | must be formatted with only hours and minutes, like "17:12" |
tzid | string | like "America/New_York" |
Array.<string>
Returns a category and subcategory name
Kind: global function
Param | Type |
---|---|
ev | Event |
Kind: global function
Param | Type |
---|---|
res | stream.Writable |
...str | string |
string
Kind: global function
Param | Type |
---|---|
d | Date |
string
Kind: global function
Param | Type |
---|---|
hour | number | string |
min | number | string |
sec | number | string |
string
Returns UTC string for iCalendar
Kind: global function
Param | Type |
---|---|
dt | Date |
Kind: global function
Param | Type |
---|---|
res | stream.Writable |
e | Event |
dtstamp | string |
options | hebcal.HebcalOptions |
Kind: global function
Param | Type |
---|---|
arr | Array.<string> |
key | string |
val | string |
string
Kind: global function
Returns: string
- multi-line result, delimited by \r\n
Param | Type |
---|---|
e | Event |
options | hebcal.HebcalOptions |
Kind: global function
Param | Type |
---|---|
res | stream.Writable |
mimeType | string |
fileName | string |
Kind: global function
Param | Type |
---|---|
res | stream.Writable |
events | Array.<Event> |
options | hebcal.HebcalOptions |
string
Kind: global function
Param | Type |
---|---|
options | hebcal.HebcalOptions |
string
Renders an Event as a string
Kind: global function
Param | Type |
---|---|
e | Event |
options | hebcal.HebcalOptions |
Kind: global function
Param | Type |
---|---|
res | stream.Writable |
events | Array.<Event> |
options | hebcal.HebcalOptions |
Object
Converts a Hebcal event to a FullCalendar.io object
Kind: global function
Param | Type | Description |
---|---|---|
ev | Event | |
tzid | string | timeZone identifier |
FAQs
Jewish holidays and Hebrew calendar as iCalendar RFC 2445
The npm package @hebcal/icalendar receives a total of 7 weekly downloads. As such, @hebcal/icalendar popularity was classified as not popular.
We found that @hebcal/icalendar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.