readme tweaks
This commit is contained in:
parent
763b167349
commit
eff96c2c15
1 changed files with 7 additions and 6 deletions
13
readme.md
13
readme.md
|
|
@ -13,8 +13,9 @@
|
||||||
|
|
||||||
## Why
|
## Why
|
||||||
|
|
||||||
- **Doesn't extend String.prototype**
|
- Doesn't extend String.prototype
|
||||||
- Expressive API
|
- Expressive API
|
||||||
|
- Ability to nest styles
|
||||||
- Clean and focused
|
- Clean and focused
|
||||||
- Auto-detects color support
|
- Auto-detects color support
|
||||||
- Actively maintained
|
- Actively maintained
|
||||||
|
|
@ -44,14 +45,14 @@ console.log( chalk.blue('Hello'), 'World' + chalk.red('!') );
|
||||||
// compose multiple styles using the chainable API
|
// compose multiple styles using the chainable API
|
||||||
console.log( chalk.blue.bgRed.bold('Hello world!') );
|
console.log( chalk.blue.bgRed.bold('Hello world!') );
|
||||||
|
|
||||||
|
// pass in multiple arguments
|
||||||
|
console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') );
|
||||||
|
|
||||||
// nest styles
|
// nest styles
|
||||||
console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') );
|
console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') );
|
||||||
|
|
||||||
// nest styles of the same type even (colour, underline, background)
|
// nest styles of the same type even (color, underline, background)
|
||||||
console.log( chalk.green('Hello, I'm a green line ' + chalk.blue('with a blue substring') + ' that becomes green again!') );
|
console.log( chalk.green('I am a green line ' + chalk.blue('with a blue substring') + ' that becomes green again!') );
|
||||||
|
|
||||||
// pass in multiple arguments
|
|
||||||
console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') );
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Easily define your own themes.
|
Easily define your own themes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue