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
|
||||
|
||||
- **Doesn't extend String.prototype**
|
||||
- Doesn't extend String.prototype
|
||||
- Expressive API
|
||||
- Ability to nest styles
|
||||
- Clean and focused
|
||||
- Auto-detects color support
|
||||
- Actively maintained
|
||||
|
|
@ -44,14 +45,14 @@ console.log( chalk.blue('Hello'), 'World' + chalk.red('!') );
|
|||
// compose multiple styles using the chainable API
|
||||
console.log( chalk.blue.bgRed.bold('Hello world!') );
|
||||
|
||||
// pass in multiple arguments
|
||||
console.log( chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz') );
|
||||
|
||||
// nest styles
|
||||
console.log( chalk.red('Hello', chalk.underline.bgBlue('world') + '!') );
|
||||
|
||||
// nest styles of the same type even (colour, underline, background)
|
||||
console.log( chalk.green('Hello, I'm 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') );
|
||||
// nest styles of the same type even (color, underline, background)
|
||||
console.log( chalk.green('I am a green line ' + chalk.blue('with a blue substring') + ' that becomes green again!') );
|
||||
```
|
||||
|
||||
Easily define your own themes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue