Add support for ansi
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
parent
88f323fb16
commit
d97dd528de
6 changed files with 37 additions and 5 deletions
|
|
@ -298,6 +298,7 @@ The following color models can be used:
|
|||
|
||||
- [`rgb`](https://en.wikipedia.org/wiki/RGB_color_model) - Example: `chalk.rgb(255, 136, 0).bold('Orange!')`
|
||||
- [`hex`](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet) - Example: `chalk.hex('#FF8800').bold('Orange!')`
|
||||
- [`ansi`](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) - Example: `chalk.ansi(31).bgAnsi(93)('red on yellowBright')`
|
||||
- [`ansi256`](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) - Example: `chalk.bgAnsi256(194)('Honeydew, more or less')`
|
||||
|
||||
## Browser support
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue