home | heroImage | actionText | actionLink | footer |
---|---|---|---|---|
true |
/assets/logo.svg |
Read the docs → |
/start |
© 2023 Datebook. |
Datebook supports both server-side rendering, as well as all major modern browsers.
Fully supports ICS content generation for iCalendar and Office Outlook, and also supports Google Calendar, Yahoo! Calendar and Outlook Web.
yarn add datebook
import { GoogleCalendar } from 'datebook'
const googleCalendar = new GoogleCalendar({
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: new Date('2020-07-04T19:00:00'),
end: new Date('2020-07-04T23:30:00'),
recurrence: {
frequency: 'WEEKLY',
interval: 2
}
})
window.location.href = googleCalendar.render()