Skip to content

๐Ÿ“… Generates URLs and downloadable ICS files for adding events to popular calendar apps.

License

Notifications You must be signed in to change notification settings

roberttaylor426/datebook

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Datebook

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.


Code coverage Build status npm version npm package size


Documentation

See the full documentation โ†’

Demo

Try the online calendar generators โ†’

Quick Start

Installation

yarn add datebook

Example Usage

import { ICalendar } from 'datebook'

const icalendar = new ICalendar({
  title: 'Happy Hour',
  location: 'The Bar, New York, NY',
  description: 'Let\'s blow off some steam with a tall cold one!',
  start: new Date('2022-07-08T19:00:00'),
  end: new Date('2022-07-08T23:30:00'),
  recurrence: {
    frequency: 'WEEKLY',
    interval: 2
  }
})

icalendar.download()

Browser Support

The latest versions of all major browsers are supported.

Chrome logo Firefox logo Internet Explorer logo Edge Browser Logo Opera logo Safari logo
Yes โœ… 20+ โœ… 11+ โœ… Yes โœ… 15+ โœ… 10.1+ โœ…

About

๐Ÿ“… Generates URLs and downloadable ICS files for adding events to popular calendar apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.6%
  • JavaScript 2.4%