1.0.1 • Published 7 years ago
titimer v1.0.1
TiTimer
tiː ˈtaɪ.mərshort of TinyTimer and also refers to TeaTimer

A very simple CLI utility to run a timer for a specific period of time.
Written with 0 code dependencies (but uses module-alias just for import aliases)
Can parse a string in a format 1h20m30s. Extra blocks (hours and minutes) can be skipped, e.g. 30s.
Installation
npm i -g titimer
Usage
titimer 1h20m30s- runs a timer for 1 hour, 20 minutes, 30 secondstitimer 20m30s- runs a timer for 20 minutes, 30 secondstitimer 30s- runs a timer for 30 secondstitimer -v- prints versiontitimer -h- prints help
TODO
- Make a pluralization for seconds output (now the output is
1 seconds) - Make an output string to output timer in
n hours n minutes n secondsformat (now the ouptut is3600 seconds) - Show a system notification when timer is finished, with an opt-out parameter
- Package to single executable and provide a cask for homebrew
Preview generation
cd ..asciinema rec titimer/extra/preview.casttitimer 3sCTRL+dcd -npx asciicast2gif -s 2 extra/preview.cast extra/preview.svg