Skip to content

ShaunLWM/node-googlecal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

node-googlecal

npm npm

Simply create a Google Calendar event link with just a few parameters.

Install

$ npm install node-googlecal
$ yarn install node-googlecal

Usage

const googlecal = require("node-googlecal");

googlecal({ title: "Hello World", location: "Google Seattle" })
// => a simple title and location Calendar link

googlecal({ title: "Hello World", location: "Google Seattle", description: "Join us for a wonderful evening about Firebase" })
// => add in description to tell user what the event is about

googlecal({ title: "Hello World", location: "Google Seattle", description: "Join us for a wonderful evening about Firebase", dateStart: "20190808T170000Z", dateEnd: "20190808T173000Z" })
// => add your start and end date

API

googlecal([options])

options

Type: Object

title

Type: string
Default: ``

Title for Calendar event

location

Type: string
Default: ``

Location for Calendar event. Can be a Google Map link or just a simple location name.

description

Type: string
Default: ``

Description for Calendar event

dateStart

Type: string
Default: ``

Starting date for Calendar event. Do take note of the format (eg: 20190808T170000Z)

dateEnd

Type: string
Default: ``

Ending date for Calendar event. Do take note of the format (eg: 20190808T170000Z)

Returns

Type: Object
Key: error (if any) & url if everything is okay

About

๐Ÿ“… A simple Google Calendar link generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published