google-calendar-url
Generate shareable URLs for adding Google Calendar events.
Features
Written in TypeScript and includes type definitions.
- No dependencies
- Works with vanilla JavaScript and TypeScript
- Adheres to Semantic Versioning
Try it in a CodeSandbox.
Installation
yarn add google-calendar-url# or npm install google-calendar-url --save
Usage
; ; console.logurl; // https://calendar.google.com/calendar/event?action=TEMPLATE&dates=20201212T100000Z%2F20201212T110000Z&text=Event+title&details=Event+details&location=San+Francisco
API
The googleCalendarEventUrl
function takes a single GoogleCalendarEventArgs
argument.