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

Category: Date & Time , Javascript | May 29, 2019
Author: AnandChowdhary
Views Total: 406
Official Page: Go to website
Last Update: May 29, 2019
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, and Microsoft Outlook.

Full Documentation Here.

Basic usage:

Install & import the calendar-link.

# NPM
$ npm install calendar-link --save
import calendarLink from 'calendar-link'

Or directly include the UMD version on the webpage.

<script src="dist/calendar-link.umd.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);

Changelog:

v1.1.0 (05/29/2019)

  • Support for all-day events

You Might Be Interested In:


Leave a Reply