https://github.com/hash-bang/coma
Node CLI to enhance the GNU `sleep` command
https://github.com/hash-bang/coma
Last synced: 3 months ago
JSON representation
Node CLI to enhance the GNU `sleep` command
- Host: GitHub
- URL: https://github.com/hash-bang/coma
- Owner: hash-bang
- License: mit
- Created: 2015-12-19T06:56:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-06T23:25:41.000Z (over 8 years ago)
- Last Synced: 2025-02-18T02:38:05.581Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
coma
====
Node CLI to enhance the GNU `sleep` command.Parses a time expression, waits and quits. Designed to be used within a shell script.
coma next friday && echo "To the pub!"
coma midnight && echo "It its the witching hour!"
coma 2h && echo "2 Hours from when we started"
coma 3pm tomorrow && "Its 3 O'clock!"
Can also optionally take a `-c` / `--countdown` parameter to display the time remaining on the console every second.
The envionment variable `COMA` can be populated with default options to use if no arguments are specified. e.g. `export COMA='midnight tomorrow' -cv`.