add chalk.stderr

This commit is contained in:
Yanis Benson 2019-07-22 06:20:27 +03:00
parent 6b4d20683f
commit a0a5cc536c
9 changed files with 47 additions and 9 deletions

View file

@ -147,6 +147,11 @@ Can be overridden by the user with the flags `--color` and `--no-color`. For sit
Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
### chalk.stderr and chalk.stderr.supportsColor
`chalk.stderr` contains a separate instance configured with color support detected for `stderr` stream instead of `stdout`.
Override rules from `chalk.supportsColor` apply to this too.
`chalk.stderr.supportsColor` is exposed for convinience.
## Styles