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

Category: Date & Time , Javascript | October 17, 2020
Author:AnandChowdhary
Views Total:76 views
Official Page:Go to website
Last Update:October 17, 2020
License:MIT

Preview:

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

Description:

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, Office 365, and icalendar.

Full Documentation Here.

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.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