generate-add-event-calendar-url
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Generate link to add event to gmail, outlook calendar

Google example

window.location.href = generateGoogleCalendarUrl({ text: "Event name", details: "Event description", date: new Date(), });

Outlook example

window.location.href = generateOutlookCalendarUrl({ text: "Event name", details: "Event description", date: new Date(), });

Options

  • title?: string;
  • location?: string;
  • details?: string;
  • text?: string;
  • end?: Date;
  • start?: Date;
  • date?: Date;

Package Sidebar

Install

npm i generate-add-event-calendar-url

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

10.3 kB

Total Files

6

Last publish

Collaborators

  • fhnib1995