Skip to content

πŸ“… Calendar link generator for popular services

License

Notifications You must be signed in to change notification settings

cloudfour/calendar-link

Β 
Β 

Repository files navigation

Calendar Link

Travis Coverage Status GitHub Vulnerabilities NPM type definitions NPM All contributors

JavaScript library to generate an event link for Google Calendar, Yahoo! Calendar, Microsoft Outlook, etc.

NPM

Usage

import { google, outlook, yahoo, ics } from "calendar-link"

// Set event as an object
const event = {
  title: "My birthday party",
  description: "Be there!",
  starts: "2019-12-29 18:00:00 +0100",
  duration: [3, "hour"]
};

// Then fetch the link
google(event); // https://calendar.google.com/calendar/render...
outook(event); // https://outlook.live.com/owa/...
yahoo(event); // https://calendar.yahoo.com/?v=60&title=...
ics(event); // standard ICS calendar base on https://icalendar.org/

Options

Property Description Allowed values
title πŸ‘ Event title String
start πŸ‘ Start time JS Date / ISO 8601 string / Unix Timestamp
end πŸ€™ End time JS Date / ISO 8601 string / Unix Timestamp
duration πŸ€™ Event duration Array with value (Number) and unit (String)
allDay πŸ€™ All day event Boolean
description πŸ‘Œ Information about the event String
location πŸ‘Œ Event location in words String
busy πŸ‘Œ Mark on calendar as busy? Boolean
guests 🀞 Emails of other guests Array of emails (String)

The duration field is ignored if allDay is used.

Support key

Emoji Meaning
πŸ‘ Required
πŸ€™ Any one is required
πŸ‘Œ Supported but not required
🀞 Not all calendars support

License

MIT Β© Anand Chowdhary

Contributors

Thanks goes to these wonderful people (emoji key):

Anand Chowdhary
Anand Chowdhary

πŸ’» πŸ“–
Harry Lachenmayer
Harry Lachenmayer

πŸ’» πŸ“–
Alexandru-Ionut Imbrea
Alexandru-Ionut Imbrea

πŸ’»
Kamran Gh
Kamran Gh

πŸ’»
Paul Hebert
Paul Hebert

πŸ› πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

About

πŸ“… Calendar link generator for popular services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%