Update readme.md
This commit is contained in:
parent
6444e365c0
commit
61a76a60d9
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=
|
||||||
|
|
||||||
All supported style strings are exposed as an array of strings for convenience. `colors` is the combination of `foregroundColors` and `backgroundColors`.
|
All supported style strings are exposed as an array of strings for convenience. `colors` is the combination of `foregroundColors` and `backgroundColors`.
|
||||||
|
|
||||||
This is useful when checking if a style string is supported:
|
This can be useful if you wrap Chalk and need to validate input:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import {modifiers, foregroundColors} from 'chalk';
|
import {modifiers, foregroundColors} from 'chalk';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue