s-recure
v0.0.1
Published
Simple, extensible parser for the iCalendar spec
Downloads
3
Readme
s-recur
Limited (though highly extensible) iCalendar parser that currently only supports RRULE
, RDATE
, EXRULE
, and EXDATE
Usage
- Install the package
npm install SOME-PACKAGE --save
- Use
parse
orserialize
to handle iCalendar event definitions:
import * as sRecur from 's-recur';
sRecur.parse(`RRULE:FREQ=MONTHLY;COUNT=3;`);
sRecur.serialize({
rrule: {
count: 5,
frequency: sRecur.Frequencies.Weekly,
byDay: [ sRecur.Days.Wednesday, sRecur.Days.Thurday ]
}
});