From eff96c2c157c578f63b6041d9fecbe2705ff5a75 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 24 Jun 2014 17:23:43 +0200 Subject: [PATCH] readme tweaks --- readme.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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.