Updates documentation regarding style application order.

This commit is contained in:
Joshua Appelman 2014-08-22 21:47:59 +02:00
parent 831ee826d5
commit 75f63a837a

View file

@ -80,7 +80,7 @@ console.log(chalk.green('Hello %s'), name);
Example: `chalk.red.bold.underline('Hello', 'world');`
Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter.
Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `Chalk.red.yellow.green` is equivalent to `Chalk.green`.
Multiple arguments will be separated by space.