cliprobe 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +122 -19
- package/dist/cli.js +24 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<a href="https://www.npmjs.com/package/cliprobe">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/KhaledSaeed18/cliprobe/main/.github/assets/cliprobe-banner.png" alt="cliprobe: black-box tests for the terminal bugs that only show up in a pipe" width="100%" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
<h1>cliprobe</h1>
|
|
8
|
+
|
|
9
|
+
<p><strong>Black-box tests any command-line program for terminal-edge bugs:</strong> the ones that only show up when output is piped, cut short, or read by a script or an AI agent.</p>
|
|
10
|
+
|
|
11
|
+
<p>
|
|
12
|
+
<a href="https://www.npmjs.com/package/cliprobe"><img src="https://shieldcn.dev/npm/cliprobe.svg?logo=npm" alt="npm version" /></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/cliprobe"><img src="https://shieldcn.dev/npm/dw/cliprobe.svg" alt="npm downloads" /></a>
|
|
14
|
+
<a href="https://github.com/KhaledSaeed18/cliprobe/actions/workflows/ci.yml"><img src="https://shieldcn.dev/github/ci/KhaledSaeed18/cliprobe.svg" alt="CI status" /></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/cliprobe"><img src="https://shieldcn.dev/npm/node/cliprobe.svg" alt="Node.js version" /></a>
|
|
16
|
+
<a href="https://github.com/KhaledSaeed18/cliprobe/blob/main/LICENSE"><img src="https://shieldcn.dev/npm/license/cliprobe.svg?variant=secondary" alt="License: MIT" /></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p>
|
|
20
|
+
<a href="https://github.com/KhaledSaeed18/cliprobe/stargazers"><img src="https://shieldcn.dev/github/stars/KhaledSaeed18/cliprobe.svg?variant=outline" alt="GitHub stars" /></a>
|
|
21
|
+
<a href="https://github.com/KhaledSaeed18/cliprobe/issues"><img src="https://shieldcn.dev/github/issues/KhaledSaeed18/cliprobe.svg?variant=outline" alt="GitHub issues" /></a>
|
|
22
|
+
<a href="https://github.com/KhaledSaeed18/cliprobe/releases"><img src="https://shieldcn.dev/github/release/KhaledSaeed18/cliprobe.svg?variant=ghost" alt="Latest release" /></a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
---
|
|
4
28
|
|
|
5
29
|
```sh
|
|
6
30
|
npx cliprobe -- esbuild
|
|
@@ -40,7 +64,7 @@ control-chars
|
|
|
40
64
|
2 failed, 0 warned, 8 passed, 2 skipped
|
|
41
65
|
```
|
|
42
66
|
|
|
43
|
-
## Why
|
|
67
|
+
## Why cliprobe?
|
|
44
68
|
|
|
45
69
|
When a program's output goes into a reader that stops early (`| head`, `grep -q`, a closed agent pipe), its next write to stdout fails. A well-behaved program exits quietly. Many Node.js CLIs instead crash with `Error: write EPIPE`, a stack trace, and exit code 1. That breaks scripts running under `set -o pipefail` and confuses agents that read stderr.
|
|
46
70
|
|
|
@@ -48,6 +72,38 @@ In a census of the 100 most-downloaded npm packages that ship a command (119 com
|
|
|
48
72
|
|
|
49
73
|
The other checks cover the rest of what goes wrong between a program and the thing reading it: color codes leaking into logs and agent transcripts, Ctrl-C that is ignored or ends in a stack trace, a terminal left with a hidden cursor or no line wrapping after Ctrl-C, and file names that can send escape sequences to your terminal.
|
|
50
74
|
|
|
75
|
+
- **Evidence, never a score.** Every result is a verdict with the error line, the first stack frame in the target's own code, or the escape sequence that leaked.
|
|
76
|
+
- **No false fails.** A new check starts as warn-only and is calibrated against real tools before it may fail.
|
|
77
|
+
- **Deterministic.** A closed pipe is a FIFO closed before the program starts, Ctrl-C is a signal to its process group, and the terminal is always 80×24.
|
|
78
|
+
- **Any language.** It tests the program from the outside, so a Go, Rust, Python or shell CLI works as well as a Node.js one.
|
|
79
|
+
- **Zero dependencies.** Nothing but Node.js and, for the terminal checks, the system's `script` command.
|
|
80
|
+
|
|
81
|
+
## Contents
|
|
82
|
+
|
|
83
|
+
- [Installation](#installation)
|
|
84
|
+
- [Usage](#usage)
|
|
85
|
+
- [Exit codes](#exit-codes)
|
|
86
|
+
- [In CI](#in-ci)
|
|
87
|
+
- [Checks](#checks): [closed-pipe](#closed-pipe), [color](#color), [pipe-escapes](#pipe-escapes), [stdin](#stdin), [ctrl-c](#ctrl-c), [restore](#restore), [control-chars](#control-chars), [info checks](#info-checks)
|
|
88
|
+
- [Fixing a failure in a Node.js CLI](#fixing-a-failure-in-a-nodejs-cli)
|
|
89
|
+
- [Safety](#safety)
|
|
90
|
+
- [Contributing](#contributing)
|
|
91
|
+
- [License](#license)
|
|
92
|
+
|
|
93
|
+
## Installation
|
|
94
|
+
|
|
95
|
+
Requires Node.js 22.12 or later, on macOS or Linux (including Alpine). Windows isn't supported yet. Run it without installing:
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
npx cliprobe -- <command>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Or add it to a project, to run in CI against your own CLI:
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
npm install --save-dev cliprobe # or: pnpm add -D cliprobe
|
|
105
|
+
```
|
|
106
|
+
|
|
51
107
|
## Usage
|
|
52
108
|
|
|
53
109
|
```sh
|
|
@@ -72,9 +128,17 @@ npx cliprobe --check startup,baseline -- node ./dist/cli.js # info checks, onl
|
|
|
72
128
|
| `-h`, `--help` | Show help |
|
|
73
129
|
| `-v`, `--version` | Show the version |
|
|
74
130
|
|
|
75
|
-
Exit codes
|
|
131
|
+
## Exit codes
|
|
132
|
+
|
|
133
|
+
| Code | Meaning |
|
|
134
|
+
| ---- | ----------------------------------------- |
|
|
135
|
+
| `0` | No check failed |
|
|
136
|
+
| `1` | A check failed |
|
|
137
|
+
| `2` | Usage error, or the command could not run |
|
|
76
138
|
|
|
77
|
-
|
|
139
|
+
A command that isn't on `PATH` is reported once, before any check runs, with exit `2` and no report. That makes cliprobe usable as a CI gate.
|
|
140
|
+
|
|
141
|
+
## In CI
|
|
78
142
|
|
|
79
143
|
A failed check exits 1, so the step fails. In GitHub Actions, write a Markdown report to the job summary while the log keeps the human report:
|
|
80
144
|
|
|
@@ -102,7 +166,9 @@ A default run does the seven checks below: closed-pipe, color, pipe-escapes, std
|
|
|
102
166
|
|
|
103
167
|
A command that keeps running, such as a server, a watcher or a full-screen program, is what ctrl-c and restore need. The other checks judge it on what it did before the timeout (`--timeout`, 15 seconds by default): a crash once stdout is closed still fails, color or a spinner in a pipe still counts, and stdin is skipped. The timeout is paid once: after the first check sees the command still running, the others watch it for 3 seconds.
|
|
104
168
|
|
|
105
|
-
|
|
169
|
+
### closed-pipe
|
|
170
|
+
|
|
171
|
+
cliprobe runs the command twice: once normally, then with stdout set to a pipe whose reading end is already closed, so the first write fails every time, even for fast native programs. Results:
|
|
106
172
|
|
|
107
173
|
| Verdict | Meaning |
|
|
108
174
|
| ------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -113,7 +179,9 @@ A command that keeps running, such as a server, a watcher or a full-screen progr
|
|
|
113
179
|
|
|
114
180
|
Servers and watchers crash the same way. Among 38 watch and serve modes of popular npm tools, 8 died with `Error: write EPIPE` as soon as their stdout reader went away, each confirmed by hand: `jest --watchAll`, `live-server`, `mocha --watch`, `nodemon`, `parcel`, `rolldown -w`, `srvx` and `vite build --watch`. None was flagged falsely.
|
|
115
181
|
|
|
116
|
-
|
|
182
|
+
### color
|
|
183
|
+
|
|
184
|
+
cliprobe runs the command up to three times: into a pipe, under a real terminal (a pseudo-terminal through the system's `script` command, 80×24), and under a terminal with `NO_COLOR=1`. Every run gets `TERM=xterm-256color` and no `CI` variable, so a program can't pass just because the terminal type looks colorless, and color libraries that force color in CI don't fail it. Color codes in piped output end up in log files and agent transcripts as `\x1b[31m` noise. Results:
|
|
117
185
|
|
|
118
186
|
| Verdict | Meaning |
|
|
119
187
|
| ------- | -------------------------------------------------------------------------------------------------------------- |
|
|
@@ -124,17 +192,22 @@ Servers and watchers crash the same way. Among 38 watch and serve modes of popul
|
|
|
124
192
|
|
|
125
193
|
Many classic tools (git, BSD `ls` and `grep`) color correctly but don't implement [`NO_COLOR`](https://no-color.org), so they get a `WARN`, never a `FAIL`. Probe a command that prints color in normal use: almost no CLI colors its `--help`.
|
|
126
194
|
|
|
127
|
-
|
|
195
|
+
### pipe-escapes
|
|
196
|
+
|
|
197
|
+
cliprobe runs the command into a pipe, with the same environment as the color check, and looks at stdout and stderr for terminal control codes that only make sense on a screen: cursor movement, line and screen erases, mode switches such as hiding the cursor, hyperlinks (OSC 8), window titles, and carriage returns that redraw a line. Spinners and progress bars are the usual source. In a pipe they turn logs and agent transcripts into `\r\x1b[2K` noise. Results:
|
|
198
|
+
|
|
199
|
+
| Verdict | Meaning |
|
|
200
|
+
| ------- | --------------------------------------------------------------------------------- |
|
|
201
|
+
| `PASS` | None of those codes reached the pipe (color is the color check's business) |
|
|
202
|
+
| `FAIL` | An escape sequence reached stdout or stderr; the reason lists which kinds |
|
|
203
|
+
| `WARN` | Only carriage returns reached the pipe, redrawing a line as a progress meter does |
|
|
204
|
+
| `SKIP` | Printed nothing |
|
|
128
205
|
|
|
129
|
-
|
|
130
|
-
| ------- | -------------------------------------------------------------------------- |
|
|
131
|
-
| `PASS` | None of those codes reached the pipe (color is the color check's business) |
|
|
132
|
-
| `WARN` | One or more reached stdout or stderr; the reason lists which kinds |
|
|
133
|
-
| `SKIP` | Printed nothing |
|
|
206
|
+
A carriage-return redraw only warns because some tools draw a progress meter on stderr into a pipe by design: curl does, unless you pass `-s`. Before this check could fail, it ran on 78 commands doing real work (builds, linters, test runners, scaffolders, package managers and system tools) and 38 watch modes and dev servers, offline in a throwaway container. Every escape sequence it found was a real bug, such as a prompt hiding the cursor in a pipe (`changeset init`), `mocha --watch` hiding the cursor and `tsc --watch` clearing the screen; none was a false failure. Probe a command that does real work, such as an install or a build: `--help` and `--version` rarely draw spinners. With `{fixture}` in the args, the hostile file names themselves are left to the control-chars check: a lister that prints them raw into a pipe, as `ls` does, passes. If the codes come from data you passed in (a file you `cat`), they are yours, not the program's.
|
|
134
207
|
|
|
135
|
-
|
|
208
|
+
### stdin
|
|
136
209
|
|
|
137
|
-
|
|
210
|
+
Agents and CI runners often start a command with stdin as a pipe that stays open and never receives anything. A program that reads stdin, or asks a question, then waits forever. cliprobe runs the command three ways: with stdin closed (`/dev/null`), with an open pipe, and, if that hangs for 3 seconds, with a pipe it closes after 1 second. Finishing right after the close proves stdin was the cause. Results:
|
|
138
211
|
|
|
139
212
|
| Verdict | Meaning |
|
|
140
213
|
| ------- | ------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -145,7 +218,9 @@ It only warns for now, never fails. In the census of the top 100 npm CLIs, no `-
|
|
|
145
218
|
|
|
146
219
|
In the census of the top 100 npm CLIs, 9 of 238 `--help` and `--version` runs failed, each confirmed by hand. he, cssesc and ansi-html read stdin before looking at their arguments. webpack and webpack-dev-server, when webpack-cli is missing, ask whether to install it and wait for an answer without checking for a terminal. With no arguments, 17 tools waited on stdin as filters by design, which is why probes you write never fail this check.
|
|
147
220
|
|
|
148
|
-
|
|
221
|
+
### ctrl-c
|
|
222
|
+
|
|
223
|
+
cliprobe lets the command run for 1 second, then sends SIGINT to its process group, which is what a terminal does when you press Ctrl-C, and gives it 3 seconds to exit. Results:
|
|
149
224
|
|
|
150
225
|
| Verdict | Meaning |
|
|
151
226
|
| ------- | ---------------------------------------------------------------------------------------------- |
|
|
@@ -156,7 +231,9 @@ In the census of the top 100 npm CLIs, 9 of 238 `--help` and `--version` runs fa
|
|
|
156
231
|
|
|
157
232
|
A stack trace printed before the Ctrl-C doesn't count. Python's default `KeyboardInterrupt` traceback is the classic failure here, so `python3 -c 'import time; time.sleep(30)'` fails.
|
|
158
233
|
|
|
159
|
-
|
|
234
|
+
### restore
|
|
235
|
+
|
|
236
|
+
Spinners, prompts and full-screen programs switch terminal modes on: they hide the cursor, open the alternate screen, turn on mouse reporting or bracketed paste, or turn line wrapping off. If they don't switch them back off on the way out, the shell they return to is broken until you run `reset`: no cursor, a blank screen, mouse clicks typed as junk, long lines cut off at the edge. cliprobe runs the command under a terminal and, for probes you write, types Ctrl-C after 1 second, as a person would. The keystroke goes through the terminal, so a program in raw mode gets it as a key rather than a signal, just as it would from a keyboard. `--version` and `--help` aren't interrupted; they're judged as they exit. Results:
|
|
160
237
|
|
|
161
238
|
| Verdict | Meaning |
|
|
162
239
|
| ------- | --------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -166,7 +243,9 @@ A stack trace printed before the Ctrl-C doesn't count. Python's default `Keyboar
|
|
|
166
243
|
|
|
167
244
|
It only warns: a terminal left in the wrong mode is a nuisance you can undo, not a failure of the program's job. Across the top 100 npm CLIs, their watch modes and servers, and popular prompt and spinner libraries (about 300 runs), nothing warned falsely, and one tool really did break the terminal: `taze -I` turns line wrapping off for its progress bars and leaves it off after Ctrl-C.
|
|
168
245
|
|
|
169
|
-
|
|
246
|
+
### control-chars
|
|
247
|
+
|
|
248
|
+
Put `{fixture}` in the arguments where your command takes a path, for example `npx cliprobe -- ls {fixture}` or `npx cliprobe -- node ./dist/cli.js scan --dir={fixture}`. cliprobe replaces it with a temporary directory of file names holding escape sequences (one sets the window title, one clears the screen), a C1 control character, a carriage return, a newline and a bidirectional override. It runs the command under a terminal and looks for those characters, unescaped, in what reaches it. A file name that can clear someone's screen or retitle their window is a terminal injection, the same bug class as the `ls`/`find` escaping that GNU coreutils added years ago. Reports show `{fixture}`, never the temporary path, and the directory is removed afterwards. Results:
|
|
170
249
|
|
|
171
250
|
| Verdict | Meaning |
|
|
172
251
|
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -204,6 +283,18 @@ const useColor = process.stdout.isTTY && !process.env.NO_COLOR;
|
|
|
204
283
|
|
|
205
284
|
`util.styleText` makes that decision for you on Node 22.13 and later (its `validateStream` option, on by default), and most color libraries check `isTTY` already, but some turn color on whenever `TERM` allows it or `CI` is set.
|
|
206
285
|
|
|
286
|
+
**pipe-escapes:** draw spinners, progress bars and prompts only when the stream is a terminal, and print plain lines otherwise:
|
|
287
|
+
|
|
288
|
+
```js
|
|
289
|
+
if (process.stderr.isTTY) {
|
|
290
|
+
startSpinner(); // frames, \r and cursor codes only on a terminal
|
|
291
|
+
} else {
|
|
292
|
+
console.error('building...'); // one plain line per step in a pipe
|
|
293
|
+
}
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Most spinner libraries check `isTTY` already. Prompt libraries may not, so check `process.stdin.isTTY` before asking anything (see stdin below).
|
|
297
|
+
|
|
207
298
|
**stdin:** look at your arguments before reading stdin, so `--help` and `--version` answer at once, and only prompt when stdin is a terminal:
|
|
208
299
|
|
|
209
300
|
```js
|
|
@@ -243,6 +334,18 @@ Also escape U+2028, U+2029 and the bidi controls (U+202A to U+202E, U+2066 to U+
|
|
|
243
334
|
|
|
244
335
|
cliprobe runs the target in your current directory without a shell, with stdin closed (`/dev/null`; the stdin check also uses a pipe that it never writes to), a temporary `HOME`, and a minimal environment (no tokens from your shell). It still executes the program, so only probe programs you trust. By default cliprobe passes only the arguments you give, or `--version` and `--help`, or none with `--bare`; only the baseline check, when you name it, adds an unknown flag. The only input it ever sends is Ctrl-C, from the ctrl-c and restore checks, to probes you write. It kills each run's whole process group on timeout, including under a pseudo-terminal. It runs on macOS and Linux, including Alpine; the terminal checks need the `script` command, which Alpine ships in `util-linux-misc`. Windows isn't supported yet.
|
|
245
336
|
|
|
337
|
+
## Contributing
|
|
338
|
+
|
|
339
|
+
Bug reports and pull requests are welcome. Development needs Node.js 22.12 or later and pnpm (the version is pinned in `package.json`):
|
|
340
|
+
|
|
341
|
+
```sh
|
|
342
|
+
pnpm install
|
|
343
|
+
pnpm dev --check closed-pipe -- printf hi # run the CLI from source
|
|
344
|
+
pnpm check # everything CI runs
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
[AGENTS.md](https://github.com/KhaledSaeed18/cliprobe/blob/main/AGENTS.md) describes the layout, the product rules and how to add a check. Commits follow [Conventional Commits](https://www.conventionalcommits.org), and every `feat` or `fix` merged to `main` is released to npm.
|
|
348
|
+
|
|
246
349
|
## License
|
|
247
350
|
|
|
248
|
-
MIT
|
|
351
|
+
[MIT](https://github.com/KhaledSaeed18/cliprobe/blob/main/LICENSE), by [Khaled Saeed](https://github.com/KhaledSaeed18).
|
package/dist/cli.js
CHANGED
|
@@ -1243,26 +1243,34 @@ function listLabels$1(kinds) {
|
|
|
1243
1243
|
const labels = kinds.map((k) => CONTROL_LABELS[k]);
|
|
1244
1244
|
return labels.length <= 1 ? labels[0] ?? "" : `${labels.slice(0, -1).join(", ")} and ${labels.at(-1) ?? ""}`;
|
|
1245
1245
|
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Escape sequences (cursor, erase, mode, hyperlink, title, other OSC) in a pipe fail: no
|
|
1248
|
+
* real tool in the censuses printed one there except by mistake. A carriage-return redraw
|
|
1249
|
+
* alone only warns, because some tools draw a progress meter on stderr by design (curl).
|
|
1250
|
+
*/
|
|
1246
1251
|
function judgePipeEscapes(r) {
|
|
1247
1252
|
if (r.spawnError) return {
|
|
1248
1253
|
verdict: "error",
|
|
1249
1254
|
reason: `could not start: ${r.spawnError}`
|
|
1250
1255
|
};
|
|
1251
1256
|
const stdout = r.stdout.toString("utf8");
|
|
1252
|
-
const
|
|
1253
|
-
const errHits = findControls(r.stderr);
|
|
1254
|
-
const first = outHits[0] ? {
|
|
1257
|
+
const hits = [...findControls(stdout).map((hit) => ({
|
|
1255
1258
|
stream: "stdout",
|
|
1256
|
-
hit
|
|
1257
|
-
}
|
|
1259
|
+
hit
|
|
1260
|
+
})), ...findControls(r.stderr).map((hit) => ({
|
|
1258
1261
|
stream: "stderr",
|
|
1259
|
-
hit
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1262
|
+
hit
|
|
1263
|
+
}))];
|
|
1264
|
+
const escape = hits.find((h) => h.hit.kind !== "redraw");
|
|
1265
|
+
const first = escape ?? hits[0];
|
|
1266
|
+
if (first) {
|
|
1267
|
+
const kinds = [...new Set(hits.map((h) => h.hit.kind))];
|
|
1268
|
+
return {
|
|
1269
|
+
verdict: escape ? "fail" : "warn",
|
|
1270
|
+
reason: escape ? `printed terminal control codes into a pipe: ${listLabels$1(kinds)}` : "redrew lines with carriage returns in a pipe, as a progress meter does",
|
|
1271
|
+
evidence: `${first.stream} line ${first.hit.line}: ${first.hit.text}`
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1266
1274
|
if (!stdout && !r.stderr) return r.timedOut ? {
|
|
1267
1275
|
verdict: "skip",
|
|
1268
1276
|
reason: `${stillRunning(r.durationMs)} and printed nothing so far`
|
|
@@ -1916,9 +1924,10 @@ Checks:
|
|
|
1916
1924
|
color Runs the command into a pipe, then under a terminal, then under
|
|
1917
1925
|
a terminal with NO_COLOR=1. Fails if color codes reach a pipe;
|
|
1918
1926
|
warns if color goes to a piped stderr or NO_COLOR is ignored.
|
|
1919
|
-
pipe-escapes Runs the command into a pipe
|
|
1920
|
-
|
|
1921
|
-
|
|
1927
|
+
pipe-escapes Runs the command into a pipe. Fails if cursor movement, erase,
|
|
1928
|
+
mode switch, hyperlink or window title codes (spinners,
|
|
1929
|
+
progress bars, prompts) reach stdout or stderr; warns if only
|
|
1930
|
+
carriage returns redraw a line, as a progress meter does.
|
|
1922
1931
|
stdin Runs the command with stdin as an open pipe nobody writes to,
|
|
1923
1932
|
as agents and CI runners often leave it. Fails if --version or
|
|
1924
1933
|
--help waits for input; for your own probes, warns if it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cliprobe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Black-box test any command-line program for terminal-edge bugs: crashes on a closed pipe (| head), color and control codes leaking into pipes, hangs waiting on stdin, broken Ctrl-C handling, a terminal left broken after Ctrl-C, and control characters from file names reaching your terminal.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|