diff --git a/readme.md b/readme.md index 1982c3e..d28f99d 100644 --- a/readme.md +++ b/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.