Changed chalk to colors in example

This commit is contained in:
KahWee Teng 2014-10-02 23:01:14 +08:00
parent ea942de287
commit f821fd0ebc

View File

@ -102,7 +102,7 @@ node myapp.js --no-color
```js
var name = 'Marak';
console.log(chalk.green('Hello %s'), name);
console.log(colors.green('Hello %s'), name);
// outputs -> 'Hello Marak'
```
@ -164,4 +164,4 @@ console.log(colors.error("this is an error"));
console.log(colors.warn("this is a warning"));
```
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*