adamgibbons / ics

iCalendar (ics) file generator for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to set EXDATE with this library?

zmievsa opened this issue · comments

Is it possible to set EXDATE with this library?

Until a way to add custom properties is exposed, you can use a hacky workaround by using any property that isn't sanitized with foldLine in src/pipeline/format.js (uid, timestamp, sequence, or recurrenceRule), and then passing '\r\n' and then EXDATE:<your data>. For example:

recurrenceRule: 'FREQ=DAILY\r\nEXDATE:<data>',

I would leave this open, as there should be a way to do this without this hacky workaround.