should-color

Determine whether output should use colors or not.

crates.io docs.rs GitHub GitHub Workflow Status Dependencies status MIT license

The should-color crate helps determine the color choice for an application output based on the command line arguments and environment variables.

The resulting color choice is determined by taking into account, in order of priority from higher to lower, the following settings:

Please refer to the documentation for more details on the resolution process.

Alternatives and comparison