Skip to content

Commit

Permalink
Close #86 PR: Add ES2015 template literal example. Fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvin Erikson authored and sindresorhus committed Oct 8, 2015
1 parent 8d59997 commit ed6e7d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ed6e7d5

Please sign in to comment.