Skip to main content

Module color

Module color 

Source
Expand description

ANSI color helpers for human stderr diagnostics. Color output utilities.

Colors are off by default (agent-friendly). Enable with browser-automation-cli config set color true (XDG config). Setting NO_COLOR to any value disables colors per https://no-color.org/ (OS convention).

Functionsยง

bold
Format text in bold
cyan
Format text in cyan (info)
dim
Format text dimmed
green
Format text in green (success)
is_enabled
Returns true if color output is enabled.
red
Format text in red (errors)
yellow
Format text in yellow (warnings)