mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-08 11:41:17 +00:00
[docs] Update README
This commit is contained in:
parent
3968ec6364
commit
fee9d2475f
@ -100,9 +100,11 @@ node myapp.js --no-color
|
|||||||
|
|
||||||
## Console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data)
|
## Console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data)
|
||||||
|
|
||||||
|
```
|
||||||
var name = 'Marak';
|
var name = 'Marak';
|
||||||
console.log(chalk.green('Hello %s'), name);
|
console.log(chalk.green('Hello %s'), name);
|
||||||
// outputs -> 'Hello Marak'
|
// outputs -> 'Hello Marak'
|
||||||
|
```
|
||||||
|
|
||||||
## Custom themes
|
## Custom themes
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user