add chalk.stderr
This commit is contained in:
parent
6b4d20683f
commit
a0a5cc536c
9 changed files with 47 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue