Update readme.md

This commit is contained in:
Sindre Sorhus 2022-10-04 20:26:21 +07:00 committed by GitHub
parent 6444e365c0
commit 61a76a60d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`.
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
import {modifiers, foregroundColors} from 'chalk';