Skip to content

Simple JavaScript browser iCalendar generator lib

License

Notifications You must be signed in to change notification settings

qertis/ical-browser

Repository files navigation

ical-browser

Working in the Browser and Node.js

https://codepen.io/qertis/full/RweggQJ

Installation

npm install ical-browser

Example

import {
  VEvent,
  default as ICalendar,
} from 'ical-browser'

const vevent = new VEvent({
  uid: 'c7614cff-3560-4a00-9152-d25cc1fe077d',
  summary: 'Event Title',
  description: 'My event',
  start: new Date(),
})
const calendar = new ICalendar()
calendar.addEvent(vevent)
calendar.download('calendar.ics')

Copyright and license

Copyright (c) Denis Baskovsky under the MIT license.