A library for adding events to popular calendar apps.
It supports .ics files for iCalendar and Office Outlook, and also supports Google Calendar, Yahoo! Calendar and Outlook Online.
See the full documentation โ
yarn add datebook
import { ICalendar } from 'datebook'
const icalendar = new ICalendar({
title: 'Happy Hour',
location: 'The Bar, New York, NY',
description: 'Let\'s blow off some steam from our weekly deployments to enjoy a tall cold one!',
start: '2020-07-04T19:00:00',
end: '2020-07-04T23:30:00',
recurrence: {
frequency: 'WEEKLY',
interval: 2
}
})
icalendar.download()
YahooCalendar
GoogleCalendar
ICalendar
OutlookCalendar
CalendarBase
(for creating new services)
The latest versions of all major browsers are supported.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
Yes โ | 20+ โ | 10+ โ | Yes โ | 15+ โ | 10.1+ โ |