npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gcalendar-cli

v1.0.11

Published

Google Calendar cli tool for Node.js

Downloads

19

Readme

gcalendar-cli

Google Calendar cli tool for Node.js

npm version CircleCI Coverage Status

Installation

Install it as a global module

npm install -g gcalendar-cli

Authentication

Authorization and authentication is done with OAuth 2.0.

1) Get your project credentials

You will need a file with your credentials: client ID, client secret and redirect URI. This can be obtained in the Developer Console:

  • Select or create a project
  • Click in Credentials
  • Click Create credentialsOAuth client ID ( Application type must be Other )
  • Download the JSON file and save as client_secret.json in C:\Users\<YOUR_USER_NAME> directory

2) Get token

gcal setup

Login with your Google account and approve the permissions.

Copy the token back to the terminal.

You should see ✔️ You are ready to go!

Example:

Authorize this app by visiting this url:
https://accounts.google.com/o/oauth2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly&response_type=code&client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
? Enter the code from that page here: x/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
✔️ You are ready to go!

Usage

List Events

gcal list

List google calendar events

Options:
  --version    Show version number                                     [boolean]
  --help       Show help                                               [boolean]
  --table, -t  Display events in table                                 [boolean]
  --days, -d   Number of days for events                                [number]
  --range, -r  Date range of events in natural language                 [string]

List events using natural language (powered by Sherlock):

gcal ls -r "tomorrow"
gcal ls -r "from 25 Dec to 27 Dec"

List events with 3 days from now

gcal ls -d 3

List events only for today

gcal ls -d 0

Insert Event

gcal insert <info>

Insert event into google calendar

Options:
  --version       Show version number                                  [boolean]
  --help          Show help                                            [boolean]
  --duration, -d  Duration of the event                                 [number]
  --calendar, -c  Calendar for event to insert                          [string]

Insert events using natural language:

All day event:

gcal insert "Party tomorrow"
gcal insert "Vacation from 23 Dec to 25 Dec"

Timed event:

gcal insert "Party tomorrow from 2pm to 7pm"

Insert events with duration:

Party tomrrow from 2pm to 7pm (5 Hours):

gcal insert "Party tomorrow from 2pm" -d 5

Movie from 3pm to 4:30pm (1.5 Hours):

gcal insert "Movie from 3pm" -d 1.5

Inspriation

  • gcal-cli - Google Calendar command line tool for Node.js

License

MIT © Horace Lee