output all events from google calendar in future.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
//Filter is made by start time of the event. Sort by last modified.
let eventsInFuture = await lib.gcal.events['@3.0.2'].list({
timeMin: new Date().toISOString(),
showDeleted: false,
showHiddenInvitations: false,
singleEvents: false,
});
for await (googleCalendarEvent of events.items) {
//await to allow async actions with googleCalendarEvent here
console.log(googleCalendarEvent);
}