mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-28 18:40:09 +00:00
Changed chalk to colors in example
This commit is contained in:
parent
ea942de287
commit
f821fd0ebc
@ -102,7 +102,7 @@ node myapp.js --no-color
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
var name = 'Marak';
|
var name = 'Marak';
|
||||||
console.log(chalk.green('Hello %s'), name);
|
console.log(colors.green('Hello %s'), name);
|
||||||
// outputs -> 'Hello Marak'
|
// outputs -> 'Hello Marak'
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -164,4 +164,4 @@ console.log(colors.error("this is an error"));
|
|||||||
console.log(colors.warn("this is a warning"));
|
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