🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

calendaryjs-plugin-ics

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

calendaryjs-plugin-ics

ICS (RFC 5545) export for calendaryjs — serialize generated calendar occurrences to a standard .ics VCALENDAR (VEVENT, VALARM reminders, PRIORITY, CATEGORIES, COLOR/IMAGE). The edge integration: calendaryjs owns the core, ICS rides at the boundary.

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

calendaryjs

calendaryjs-plugin-ics

New to calendaryjs? Start with the core README — this plugin serializes its output.

Turn generated calendar occurrences into a standard .ics VCALENDAR that Apple Calendar, Google Calendar, Outlook and anything else can subscribe to. An edge integration — calendaryjs owns the calendar core; this only serializes its plain output, with zero runtime dependency.

npm Socket Zero dependencies

Install

npm i calendaryjs calendaryjs-plugin-ics

Use it

Generate occurrences with calendaryjs, then pass them to toICS():

import { calendary } from "calendaryjs";
import { every, date } from "calendaryjs/builder";
import { toICS } from "calendaryjs-plugin-ics";

const cal = calendary();
cal.addGroup({
  id: "holidays",
  events: [every("year").on(date(12, 25)).title("Christmas")],
});

const events = cal.getEventsInRange("2026-01-01", "2026-12-31");
const ics = toICS(events, { calendarName: "Holidays" });
// → a VCALENDAR string: write to a .ics file or serve it from an endpoint

One VEVENT per occurrence (events come pre-expanded, so no RRULE) — lunar / hijri / formula dates and per-occurrence exceptions & overrideDates all export correctly. Reminders → VALARM, priorityPRIORITY, plus DESCRIPTION / LOCATION / URL / CATEGORIES / COLOR.

Reference

toICS(events, options?) → string; // a full VCALENDAR document
OptionNotes
prodIdPRODID
calendarNameX-WR-CALNAME — the calendar's display name
methodMETHOD, e.g. "PUBLISH"
dtstampfixed Date → byte-stable, diff-friendly output
priorityMapoverride priority → ICS PRIORITY (return 0 to omit)

Also exported: eventToVEvent(event, options?) — a single VEVENT block (no wrapper).

License

MIT. This plugin requires the calendaryjs core, which is licensed PolyForm Noncommercial — so commercial use of the combined work requires a commercial license for the core. See Commercial licensing.

Keywords

ics

FAQs

Package last updated on 28 Jun 2026

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