diff --git a/readme.md b/readme.md index 46813ac..580d4a0 100644 --- a/readme.md +++ b/readme.md @@ -49,7 +49,7 @@ console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') ); console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') ); ``` -You can easily define your own themes. +Easily define your own themes. ```js var chalk = require('chalk'); @@ -57,6 +57,14 @@ var error = chalk.bold.red; console.log(error('Error!')); ``` +Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). + +```js +var name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> Hello Sindre +``` + ## API