mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 11:00:11 +00:00
[fix] Really bad example in README. Examples should actually contain code that can run. Blame c11d23d96aee270bcfc8761c1f6c20579def88f3
This commit is contained in:
parent
5958f1677d
commit
d05ab9df3c
@ -166,12 +166,13 @@ console.log(colors.warn("this is a warning"));
|
|||||||
You can also combine them:
|
You can also combine them:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
var colors = require('colors');
|
||||||
|
|
||||||
colors.setTheme({
|
colors.setTheme({
|
||||||
link: ['underline', 'blue']
|
custom: ['red', 'underline']
|
||||||
});
|
});
|
||||||
|
|
||||||
// outputs underlined blue text
|
console.log('test'.custom);
|
||||||
console.log(colors.info('Listening on ') + colors.link('http://0.0.0.0:' + port));
|
|
||||||
```
|
```
|
||||||
|
|
||||||
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*
|
*Protip: There is a secret undocumented style in `colors`. If you find the style you can summon him.*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user