mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 02:50:10 +00:00
Merge pull request #84 from kahwee/patch-1
Changed chalk to colors in example
This commit is contained in:
commit
c37d45ddfe
@ -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.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user