# writeICalendar (@salmonui/export/ics)

> The writeICalendar function of @salmonui/export/ics: Writes events as an RFC 5545 VCALENDAR (CRLF line ends, lines folded at 75 octets).

Canonical: https://salmonui.dev/docs/reference/export/ics/writeICalendar

```ts
import { writeICalendar } from '@salmonui/export/ics';
```

Entry index: https://salmonui.dev/docs/reference/export/ics (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/export/ics.md).

## Reference

Kind: function

```ts
function writeICalendar(events: readonly ICalendarEvent[], options?: ICalendarWriteOptions): string;
```

Writes events as an RFC 5545 VCALENDAR (CRLF line ends, lines folded at 75 octets).
