Add .visible for emitting text only when enabled (fixes #192)
This commit is contained in:
parent
4372d27f7e
commit
dc092b4a5f
5 changed files with 40 additions and 1 deletions
|
|
@ -45,3 +45,7 @@ chalk.rgb(1, 14, 9).bgBlue('foo');
|
|||
chalk.hsl(1, 14, 9).bgBlue('foo');
|
||||
chalk.hsv(1, 14, 9).bgBlue('foo');
|
||||
chalk.hwb(1, 14, 9).bgBlue('foo');
|
||||
|
||||
chalk.visible('foo');
|
||||
chalk.red.visible('foo');
|
||||
chalk.visible.red('foo');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue