项目作者: ShaunLWM

项目描述 :
📅 A simple Google Calendar link generator
高级语言: JavaScript
项目地址: git://github.com/ShaunLWM/node-googlecal.git
创建时间: 2019-08-08T01:14:34Z
项目社区:https://github.com/ShaunLWM/node-googlecal

开源协议:MIT License

下载


node-googlecal

npm
npm

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

Install

  1. $ npm install node-googlecal
  1. $ yarn install node-googlecal

Usage

  1. const googlecal = require("node-googlecal");
  2. googlecal({ title: "Hello World", location: "Google Seattle" })
  3. // => a simple title and location Calendar link
  4. googlecal({ title: "Hello World", location: "Google Seattle", description: "Join us for a wonderful evening about Firebase" })
  5. // => add in description to tell user what the event is about
  6. googlecal({ title: "Hello World", location: "Google Seattle", description: "Join us for a wonderful evening about Firebase", dateStart: "20190808T170000Z", dateEnd: "20190808T173000Z" })
  7. // => 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