Update readme.md

This commit is contained in:
Sindre Sorhus 2017-06-29 22:33:21 +02:00 committed by GitHub
parent 5c774b9094
commit 24db1200d8

View file

@ -117,9 +117,9 @@ Multiple arguments will be separated by space.
### chalk.enabled ### chalk.enabled
Color support is automatically detected, as is the level (see `chalk.level`). However, if you'd like to simply enable/disable chalk, you can do so via the `.enabled` property. Color support is automatically detected, as is the level (see `chalk.level`). However, if you'd like to simply enable/disable Chalk, you can do so via the `.enabled` property.
Chalk is enabled by default unless expicitly disabled via the constructor. Chalk is enabled by default unless expicitly disabled via the constructor or `chalk.level` is `0`.
If you need to change this in a reusable module, create a new instance: If you need to change this in a reusable module, create a new instance: