Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: function to create an "icalobject" with timezone and events #115

Open
ethanstrominger opened this issue May 11, 2021 · 0 comments

Comments

@ethanstrominger
Copy link

ethanstrominger commented May 11, 2021

Something like:
ical.sync.parseFile({ filename: 'example-calendar.ics', createObject: true })

or

ical.sync.parseFile({ filename: 'example-calendar.ics', createExtendedJson: true })

If createObject is true:

  • object.events.keyValues holds an array of key value pairs where the value is an event,
  • ?? object.event.keyArray holds the key for the events
  • ?? object.event.valueArray holds an array of events
  • object.timezoneIds is an array of timezone ids
  • object.calendarAttributes returns an object with these properties:
    • name: string
    • description: string
    • defaultTimezoneId: string

If createExtendedJson is true, do the same as createObject but return the json string of the object.

If this makes sense, I can work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant