Chain[styles](#styles)andcallthelastoneasamethodwithastringargument.Orderdoesn'tmatter,andlaterstylestakeprecedentincaseofaconflict.Thissimplymeansthat`chalk.red.yellow.green` is equivalent to `chalk.green`.
Multipleargumentswillbeseparatedbyspace.
###chalk.enabled
Colorsupportisautomaticallydetected,asisthelevel(see`chalk.level`). However, if you'd like to simply enable/disable Chalk, you can do so via the `.enabled`property.
Chalkisenabledbydefaultunlessexplicitlydisabledviatheconstructoror`chalk.level` is `0`.
Detectwhethertheterminal[supportscolor](https://github.com/chalk/supports-color). Used internally and handled for you, but exposed for convenience.
Canbeoverriddenbytheuserwiththeflags`--color` and `--no-color`. For situations where using `--color` is not possible, add the environment variable `FORCE_COLOR=1` to forcefully enable color or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR`overridesallothercolorsupportchecks.
Explicit256/Truecolormodecanbeenabledusingthe`--color=256` and `--color=16m`flags,respectively.
Allinterpolatedvalues(`` chalk`${foo}` ``) are converted to strings via the `.toString()` method. All curly braces (`{` and `}`)ininterpolatedvaluestringsareescaped.
##256andTruecolorcolorsupport
Chalksupports256colorsand[Truecolor](https://gist.github.com/XVilka/8346728) (16 million colors) on supported terminal apps.
Backgroundversionsofthesemodelsareprefixedwith`bg` and the first level of the module capitalized (e.g. `keyword` for foreground colors and `bgKeyword`forbackgroundcolors).
Ifyou'reonWindows,doyourselfafavoranduse[`cmder`](http://cmder.net/) instead of `cmd.exe`.
##Originstory
[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68) and the package is unmaintained. Although there are other packages, they either do too much or not enough. Chalk is a clean and focused alternative.
##Related
-[chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
-[ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
-[supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color