View as Markdown

API reference

@salmonui/export/ics

13 exported symbols: 7 functions, 4 interfaces, 1 type and 1 constant. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/export/ics';

Functions

  • escapeTextTEXT escape (RFC 5545 3.3.11): backslash, ;, , and line breaks.
  • exportICalendarwriteICalendar as an export file ({ fileName, mimeType: 'text/calendar', data }).
  • foldLineFolds a content line at 75 octets (UTF-8), never inside a character; continuation lines start with a space.
  • parseICalendarParses iCalendar text (RFC 5545): unfolds lines, unescapes TEXT values and reads every VEVENT (nested components such as VALARM are skipped). A VEVENT without…
  • unescapeTextReverses escapeText.
  • vtimezoneA VTIMEZONE for zone covering the years [fromYear, toYear]: yearly RRULE observances when the transitions follow an nth-weekday pattern every year of the span…
  • writeICalendarWrites events as an RFC 5545 VCALENDAR (CRLF line ends, lines folded at 75 octets).

Interfaces

Types

  • ICalendarTimeAn instant, an all-day date, or a wall time (zoned with timeZone, floating without).

Constants