commute-when
Version:
Find the best time to leave for your commute
54 lines (34 loc) • 1.16 kB
Markdown
A dead simple CLI tool to help you decide when to leave for work.
You would need to have Google Maps API key to use this tool. You can get one [here](https://developers.google.com/maps/documentation/directions/get-api-key).
Then you would need to set the API key as an environment variable:
```bash
export GOOGLE_MAPS_API_KEY=<your-api-key>
```
```bash
npm i -g commute-when
```
```bash
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232"
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232" --tomorrow
commute-when "4512 Sandburg Way, Irvine, CA" "4077 Ince Blvd, Culver City, CA 90232" --next-wednesday
commute-when
```
```bash
bun install
```
To run:
```bash
bun src/index.ts
```