mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-10-31 12:00:08 +00:00 
			
		
		
		
	[fix] Really bad example in README. Examples should actually contain code that can run. Blame c11d23d96aee270bcfc8761c1f6c20579def88f3
This commit is contained in:
		
							parent
							
								
									fbc26111ce
								
							
						
					
					
						commit
						8407be1d38
					
				| @ -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.* | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user