Close #86 PR: Add ES2015 template literal example. Fixes #77

This commit is contained in:
Edvin Erikson 2015-10-09 01:09:08 +07:00 committed by Sindre Sorhus
parent 8d599972ee
commit ed6e7d56da

View file

@ -68,6 +68,13 @@ chalk.green(
chalk.blue.underline.bold('with a blue substring') +
' that becomes green again!'
);
// ES2015 template literal
const systemStats = `
CPU: ${chalk.red('90%')}
RAM: ${chalk.green('40%')}
DISK: ${chalk.yellow('70%')}
`;
```
Easily define your own themes.