gg_console_colors 2.4.0 copy "gg_console_colors: ^2.4.0" to clipboard
gg_console_colors: ^2.4.0 copied to clipboard

A Dart package providing a collection of console colors to easily colorize command line outputs.

gg_console_colors #

A Dart package providing a collection of console colors to easily colorize command line outputs.

Semantic colors #

Beside the plain colors, semantic helpers are available to keep the output of command line tools consistent:

Function Color
cAction() yellow
cError() red
cWarn() yellow
cCmd() blue
cPath() blue
cDetail() darkGray
cH1() cyan
cH2() bold
cSuccess() green

Disabling colors #

Colors are disabled automatically when NO_COLOR is set or TERM is dumb. To gate colors on something else, e.g. on stdout being a terminal, set ggColorsEnabled:

ggColorsEnabled = stdout.hasTerminal;

Assign null to restore the default behaviour.

1
likes
160
points
9.77k
downloads

Documentation

API reference

Publisher

verified publisherinlavigo.com

Weekly Downloads

A Dart package providing a collection of console colors to easily colorize command line outputs.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

path

More

Packages that depend on gg_console_colors