Skip to content

swartzrock/pace

Repository files navigation

logo

latest-version build license typescript issues

Typescript app with multiple visual countdown timers

About PaceInstallationUsageContributingFAQ

demo

About Pace

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.

How do I install Pace?

Install Pace With Homebrew

If you're on macOS use Homebrew to install the latest pace.

brew install swartzrock/tap/pace

Run brew upgrade to keep up to date with the latest version.

Download A Release

See the Pace Releases page for the latest macOS (ARM and Intel), Windows (Intel), and Linux (Intel) binaries.

Build The Native Executables

You can build the releases yourself by cloning the repository and running the pkg command. Requires yarn.

git clone git@github.com:swartzrock/pace.git && cd pace && yarn
yarn pkg

Run with Node

You can run the Typescript version yourself by cloning the repository and running the dev command. Requires yarn.

git clone git@github.com:swartzrock/pace.git && cd pace && yarn
# The bin/dev command runs the Typescript code directly. 
bin/dev 2m shuffle

Usage

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 5m pie

The Shuffle Renderer

demo

Use shuffle to preview all renderers in action. This renderer switches to another renderer every 10 seconds.

bin/dev 5m shuffle

Preview All Renderers

bin/dev tools preview

Contributing

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.

Preview All Available Colors and Gradients

bin/dev tools colorblocks

demo demo

Preview All Available Figlet Fonts

bin/dev tools allfonts

FAQ

How did you build Pace?

Pace is written in Typescript using the oclif CLI framework, packaged with Yarn, and compiled as native executables with pkg .

I'm seeing horizontal lines when I run Pace

demo

If you see horizontal lines across the screen when you run Pace, you may need to reduce the line height of your Terminal font. If you're using macOS's Terminal.app, you can edit the Font in Settings and choose a smaller line height, eg 0.85.

About

A visual timer for the command line that performs a countdown timer using a visual renderer on the command line. Choose a renderer when you run the app. Run `preview` to see a representation of all the renderers.

Resources

License

Stars

4 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages