Modules@robinpath/calendar

@robinpath/calendar

0.1.1Public

iCal (.ics) calendar parsing, generation, event management, and date range queries

@robinpath/calendar

iCal (.ics) calendar parsing, generation, event management, and date range queries

Category Functions Auth License

Why use this module?

The calendar module lets you:

  • Create an iCal event object
  • Create iCal string from events
  • Parse iCal string
  • Parse .ics file
  • Write iCal to file

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/calendar

Quick Start

No credentials needed — start using it right away:

calendar.createCalendar [$event1, $event2] {"name": "My Calendar"}

Available Functions

FunctionDescription
calendar.createEventCreate an iCal event object
calendar.createCalendarCreate iCal string from events
calendar.parseParse iCal string
calendar.parseFileParse .ics file
calendar.writeFileWrite iCal to file
calendar.addEventAdd event to iCal string
calendar.removeEventRemove event by UID
calendar.findEventsFind events in date range
calendar.todayGet today's events
calendar.upcomingGet upcoming events
calendar.toJsonConvert iCal to JSON
calendar.formatDateFormat ISO to iCal date
calendar.parseDateParse iCal date to ISO

Examples

Create iCal string from events

calendar.createCalendar [$event1, $event2] {"name": "My Calendar"}

Parse iCal string

calendar.parse $icsContent

Parse .ics file

calendar.parseFile "./events.ics"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/calendar";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  calendar.createCalendar [$event1, $event2] {"name": "My Calendar"}
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/calendar
Version0.1.1
LicenseMIT
Unpacked Size5.8 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

utilities