Add .visible for emitting text only when enabled (fixes #192)

This commit is contained in:
Danny Kirchmeier 2017-10-23 20:39:21 -05:00 committed by Josh Junon
parent 4372d27f7e
commit dc092b4a5f
5 changed files with 40 additions and 1 deletions

View file

@ -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');