extra tests, specific benchmark, example in readme

This commit is contained in:
Toon Baeyens 2020-05-06 15:24:58 +02:00
parent 7d238e2ebb
commit e5ea8df1e5
5 changed files with 26 additions and 2 deletions

View file

@ -215,10 +215,11 @@ console.log(chalk`
Blocks are delimited by an opening curly brace (`{`), a style, some content, and a closing curly brace (`}`).
Template styles are chained exactly like normal Chalk styles. The following two statements are equivalent:
Template styles are chained exactly like normal Chalk styles. The following three statements are equivalent:
```js
console.log(chalk.bold.rgb(10, 100, 200)('Hello!'));
console.log(chalk.bold.rgb(10, 100, 200)`Hello!`);
console.log(chalk`{bold.rgb(10,100,200) Hello!}`);
```