Modules@robinpath/calendar
@robinpath/calendar
0.1.1PubliciCal (.ics) calendar parsing, generation, event management, and date range queries
@robinpath/calendar
iCal (.ics) calendar parsing, generation, event management, and date range queries
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
| Function | Description |
|---|---|
calendar.createEvent | Create an iCal event object |
calendar.createCalendar | Create iCal string from events |
calendar.parse | Parse iCal string |
calendar.parseFile | Parse .ics file |
calendar.writeFile | Write iCal to file |
calendar.addEvent | Add event to iCal string |
calendar.removeEvent | Remove event by UID |
calendar.findEvents | Find events in date range |
calendar.today | Get today's events |
calendar.upcoming | Get upcoming events |
calendar.toJson | Convert iCal to JSON |
calendar.formatDate | Format ISO to iCal date |
calendar.parseDate | Parse 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
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/archive
v0.1.1robinpath
Create and extract .zip and .tar.gz file archives
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
Install
$ robinpath install @robinpath/calendar Version0.1.1
LicenseMIT
Unpacked Size5.8 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

