(s: string)
| 270 | } |
| 271 | |
| 272 | function dim(s: string): string { |
| 273 | // ANSI dim — only if stdout is a TTY, otherwise plain |
| 274 | return process.stdout.isTTY ? `\x1b[2m${s}\x1b[0m` : s; |
| 275 | } |
| 276 | |
| 277 | /** Detect whether we have an interactive TTY. CI environments / pipes return false. */ |
| 278 | export function isInteractiveTTY(): boolean { |
no outgoing calls
no test coverage detected