f
streamConsole(): Console
stdout: { write(text: string): unknown; },
stderr?: { write(text: string): unknown; }
Adapts anything with a write(string) — a node:fs stream, a socket, an array-backed fake —
into a Console. stderr defaults to stdout, so one stream collects the whole run.
I
Console
Where a run's text goes: console, made injectable.
-
error(text: string): void
Writes to the error stream. Diagnostics that must survive a swallowed stdout go here too.
-
log(text: string): void
Writes to the primary stream — the TAP/spec/dot document itself.
v
processConsole: Console
The CLI's: the real process streams. .write is looked up per call, so the daemon's stdout
interception still reaches it.
v
silentConsole: Console
Discards everything. The JS API's default, so a programmatic run prints nothing unless it was asked to.
Usage
import * as mod from "lib/console.ts";