Generate Event Calendar Links For Google, Yahoo And Outlook – calendar-link

Category: Date & Time , Javascript | May 10, 2026
AuthorAnandChowdhary
Last UpdateMay 10, 2026
LicenseMIT
Views12,832 views
Generate Event Calendar Links For Google, Yahoo And Outlook – calendar-link

The calendar-link JavaScript library automatically generates calendar links from events you provide so that you can add the events to the Google Calendar, Yahoo Calendar, Microsoft Outlook, Microsoft Teams, AOL, Office 365, and icalendar.

Full Documentation Here.

See Also:

Basic usage:

Install & import the calendar-link.

# NPM
$ npm install calendar-link --save
import { google, outlook, office365, yahoo,  ics } from "calendar-link";

Or directly include the UMD version on the webpage.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>

Define the event information as follow:

const event = {
      start: "2019-12-29",
      end: "2019-12-31",
      duration: [1, "day"],
      title: "Anand birthday",
      description: "Get ready for the party of your life!",
      location: "Internet",
      busy: true,
      guests: [
        "[email protected]",
        "[email protected]"
      ]
};

Generate calendar links:

calendarLink.google(event); 
calendarLink.outook(event); 
calendarLink.yahoo(event);
calendarLink.office365(event);
calendarLink.ics(event);

Changelog:

v2.11.2 (05/10/2025)

  • Update dependencies

v2.11.1 (05/06/2025)

  • Preserve all-day date-only events across timezones

v2.11.0 (06/20/2025)

  • Support adding guests for outlook

v2.10.0 (05/19/2025)

  • Add support for ICS file’s UID field

v2.9.0 (05/19/2025)

  • Set ics PRODID correctly
  • Bugfixes

v2.8.0 (12/23/2024)

  • Add status X-MICROSOFT for allDay support

v2.7.0 (07/31/2024)

  • Add Microsoft Teams Calendar Event Generation Feature

v2.6.0 (09/30/2023)

  • Update

v2.5.1 (07/19/2023)

  • Fix ICS file generation with CLRF and absent fields

v2.5.0 (07/12/2023)

  • Update

v2.4.0 (10/22/2022)

  • Add support for local time in Outlook and Office365

v2.3.1 (10/20/2022)

  • Fixed missing RRULE prefix for google

v2.3.0 (10/20/2022)

  • Supports Recurring events

v2.2.0 (05/16/2021)

  • New release

v2.1.1 (04/17/2021)

  • Bugfix

v2.1.0 (04/16/2021)

  • Deploy new UMD/ES modules

v2.0.16 (03/08/2021)

  • Dependency updates

v2.0.15 (03/01/2021)

  • Dependency updates

v2.0.14 (02/22/2021)

  • Dependency updates

v2.0.13 (02/15/2021)

  • Dependency updates

v2.0.12 (02/08/2021)

  • Dependency updates

v2.0.11 (02/01/2021)

  • Dependency updates

v2.0.10 (01/24/2021)

  • Dependency updates

v2.0.9 (01/18/2021)

  • Dependency updates

v2.0.8 (01/11/2021)

  • Dependency updates

v2.0.7 (01/03/2021)

  • Dependency updates

v2.0.6 (12/28/2020)

  • Dependency updates

v2.0.5 (12/20/2020)

  • Dependency updates

v2.0.4 (12/12/2020)

  • Dependency updates

v2.0.3 (12/07/2020)

  • Dependency updates

v2.0.2 (11/30/2020)

  • Dependency updates

v2.0.1 (11/23/2020)

  • Dependency updates

v2.0.0 (10/17/2020)

  • Bug fixes

v1.3.1 (09/01/2020)

  • Updated package

v1.2.5 (05/19/2020)

  • Use new Outlook URL
  • Supports for Office365 Links

v1.2.4 (09/10/2019)

  • Update ICS exporter to encode reserved chars

v1.2.2 (09/05/2019)

  • Support for all-day events

v1.1.0 (05/29/2019)

  • Support for all-day events

You Might Be Interested In:


Leave a Reply