-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* yargs * readme, example and logging * clear cache * package info
- Loading branch information
1 parent
e27636a
commit 4232796
Showing
13 changed files
with
152 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
.cache | ||
coverage | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
# dawn-till-dusk 🧛 | ||
|
||
A simple tool to display the sunrise, sunset and day length based on your location from the comfort of the command line. | ||
|
||
### Example output | ||
|
||
![example output](./example.jpg) | ||
|
||
### Installation | ||
|
||
``` | ||
npm i -g @mrgeorgegray/dawn-till-dusk | ||
``` | ||
|
||
### Usage | ||
|
||
``` | ||
Usage: dtd <command> [options] | ||
Commands: | ||
index.js dtd Display sunrise & sunset times | ||
Options: | ||
--help, -h Show help [boolean] [default: false] | ||
--version, -v Show version number [boolean] | ||
--clean, -c Clear data cache [boolean] [default: false] | ||
--date, -d Search by date [string] [default: "today"] | ||
--logging, -l Output extra logging info [boolean] [default: false] | ||
Examples: | ||
dtd -d '2021-08-12' display sunrise & sunset times for a given day | ||
``` | ||
|
||
### Credits | ||
|
||
- IP Address data from [https://ip-api.com](ip-api.com) | ||
- Sunrise data from [https://sunrise-sunset.org/api](sunrise-sunset.org/api) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.