Skip to content

okitan/next-gcalendar-event

Repository files navigation

next-gcalendar-event

Get next google calendar event CLI

Install

$ npm install next-gcalendar-event

Setup

Yo need these environment variables of client.

Usage

$ npm exec next-gcalendar-event --calendar-id CALENDER_ID
Meeting 2018-05-24T11:00:00+09:00-2018-05-24T11:30:00+09:00
# You can search by event summary
$ npm exec next-gcalendar-event --calendar-id CALENDER_ID --query "Drinking"
Drinking  2018-05-25T18:00:00+09:00-2018-05-25T22:00:00+09:00
# You can format output by Mustache
$ npm exec next-gcalendar-event --calendar-id CALENDER_ID --format "{{summary}} - {{description}}"
Meeting - There are no agendas.

Options

Other options can be found by --help