Added ES2015 template literal example.
Added ES2015 template literal example in `readme.md`.
This commit is contained in:
parent
8d599972ee
commit
a8bd5b6a8b
1 changed files with 8 additions and 0 deletions
|
|
@ -68,6 +68,14 @@ chalk.green(
|
||||||
chalk.blue.underline.bold('with a blue substring') +
|
chalk.blue.underline.bold('with a blue substring') +
|
||||||
' that becomes green again!'
|
' that becomes green again!'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// ES2015 template literals
|
||||||
|
const systemStats = `
|
||||||
|
CPU: ${chalk.red('90%')}
|
||||||
|
RAM: ${chalk.green('40%')}
|
||||||
|
DISK: ${chalk.yellow('70%')}
|
||||||
|
`;
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Easily define your own themes.
|
Easily define your own themes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue