Added ES2015 template literal example.

Added ES2015 template literal example in `readme.md`.
This commit is contained in:
Edvin Erikson 2015-10-08 16:40:40 +02:00
parent 8d599972ee
commit a8bd5b6a8b

View file

@ -68,6 +68,14 @@ chalk.green(
chalk.blue.underline.bold('with a blue substring') +
' 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.