Generates calendar files suitable for use with Google Calendar, iCal, Outlook, etc.
- Node.js >= 0.10
npm install
PORT=7033 npm start
You can load the calendar at any route, for instance /calendar.ics. The following query params are supported:
- start: A javascript-formatted date that is the start date of the event, such as
2014/08/27 05:30:00
. Required. - end: A javascript-formatted date that is when the event ends. Will use the start date if not passed.
- tz: Timezone of the event date in the format
America/New_York
. Required. - summary: The event title. Required.
- description: A longer description of the event.
- location: Add Location (string)
- name: Name of the calendar to add the event to. Leave blank to let the user choose.
- rrule: Logic for Recurrence Rule. If not passed, the event will not recur.
- all_day: If this parameter is passed, the event returned will have its "All Day" checkbox filled in.
http://localhost:7033/calendar.ics?tz=America/New_York&start=2014/08/28%2003:00:00&end=2014/08/28%2005:30:00&summary=my%20event&description=this%20is%20an%20event.&location=Movable%20Ink
http://localhost:7033/calendar.ics?tz=America/New_York&start=2017/08/19%2003:00:00&end=2017/08/19%2005:30:00&summary=my%20event&description=this%20is%20an%20event.&location=Movable%20Ink&rrule=FREQ=MONTHLY;BYMONTHDAY=17
http://localhost:7033/calendar.ics?tz=America/New_York&start=2014/08/28%2003:00:00&end=2014/08/28%2005:30:00&summary=my%20event&description=this%20is%20an%20event.&location=Movable%20Ink&all_day=1
See LICENSE.