From d05ab9df3c89ff7706dbc4395ef27dbbe892e24f Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 17 Jun 2015 14:59:08 +0200 Subject: [PATCH] [fix] Really bad example in README. Examples should actually contain code that can run. Blame c11d23d96aee270bcfc8761c1f6c20579def88f3 --- ReadMe.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index f139bd5..0326aab 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -166,12 +166,13 @@ console.log(colors.warn("this is a warning")); You can also combine them: ```javascript +var colors = require('colors'); + colors.setTheme({ - link: ['underline', 'blue'] + custom: ['red', 'underline'] }); -// outputs underlined blue text -console.log(colors.info('Listening on ') + colors.link('http://0.0.0.0:' + port)); +console.log('test'.custom); ``` *Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*