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

@robinpath/calendar

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/calendar

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

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
15
-37.5%
Maintainers
4
Weekly downloads
 
Created
Source

@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

robinpath add @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.

License

MIT

Keywords

calendar

FAQs

Package last updated on 06 May 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