49 lines
797 B
Markdown
49 lines
797 B
Markdown
# stopwatch-cli
|
|
|
|
A minimal terminal stopwatch with an interactive TUI.
|
|
|
|
```
|
|
┌─────────────────────┐
|
|
│ 00:00:00.0 │
|
|
│ ● RUNNING │
|
|
└─────────────────────┘
|
|
|
|
[space] start/pause [r] reset [q] quit
|
|
```
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Run
|
|
|
|
```bash
|
|
# Build and run
|
|
npm run build
|
|
npm start
|
|
|
|
# Run directly (no build step)
|
|
npm run dev
|
|
```
|
|
|
|
## Test
|
|
|
|
```bash
|
|
npm test
|
|
```
|
|
|
|
## Key bindings
|
|
|
|
| Key | Action |
|
|
|---------|------------------|
|
|
| `space` | Start / Pause |
|
|
| `r` | Reset to zero |
|
|
| `q` | Quit |
|
|
| `ctrl+c`| Quit |
|
|
|
|
## Time format
|
|
|
|
Elapsed time is shown as `HH:MM:SS.d` where `d` is tenths of a second.
|