Typescript app with multiple visual countdown timers
About Pace • Usage • Contributing • Built With
Pace is a Typescript app that performs a countdown timer using a visual renderer on the command line. Choose a renderer when you run the app, or run preview to see a representation of all the renderers.
USAGE
$ pace [DURATION] [RENDERER]
ARGUMENTS
DURATION duration in (m)inutes and (s)seconds (eg 3m10s = 190 seconds)
RENDERER the timer renderer:
bar, bigtext, circles, colorwheel, colossal, pie, renderers, shuffle, slant, sweep
DESCRIPTION
Displays a progress timer
EXAMPLES
$ pace 2.5m pie
Use the shuffle
renderer to preview all renderers in action. This renderer switches to another renderer every 10 seconds.
pace 5m shuffle
pace tools preview
It would be great to see more renderers! To write a new renderer add a subclass of src/renderers/TimerRenderer
and register it with
a short name in src/renderers/AllRenderers
.
pace tools allfonts
pace tools colorblocks
- Renderers should not store state between callbacks, since the
shuffle
renderer andtools preview
command depend on calling renderers at selected intervals.
- Typescript
- Yarn
- Oclif