forked from orbit-oss/chalk
Updates documentation regarding style application order.
This commit is contained in:
parent
831ee826d5
commit
75f63a837a
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue