[fix] Really bad example in README. Examples should actually contain code that can run. Blame c11d23d96aee270bcfc8761c1f6c20579def88f3

This commit is contained in:
Marak 2015-06-17 14:59:08 +02:00
parent 5958f1677d
commit d05ab9df3c

View File

@ -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.*