0.1.5 • Published 6 months ago

commute-when v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Commute when

A dead simple CLI tool to help you decide when to leave for work.

Pre-requisites

You would need to have Google Maps API key to use this tool. You can get one here.

Then you would need to set the API key as an environment variable:

export GOOGLE_MAPS_API_KEY=<your-api-key>

Installation (binary)

For macOS:

npm i -g commute-when

Usage

# commute-when <origin> <destination>
# Today's commute
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232"

# Tomorrow's commute
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232" --tomorrow

# Or any next day
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232" --next-wednesday

# Once run with origin and destination, they will be saved in the config file at ~/.config/commute.json
# So you can just run `commute-when` without any arguments to get the commute time of today
commute-when

Development

bun install

To run:

bun src/index.ts
0.1.5

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago