| 
									
										
										
										
											2011-09-25 10:11:37 +02:00
										 |  |  | var util = require('util'); | 
					
						
							| 
									
										
										
										
											2010-06-11 07:25:35 -04:00
										 |  |  | var colors = require('./colors'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-07-14 17:40:30 -07:00
										 |  |  | //colors.mode = "browser";
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-07-14 18:02:32 -07:00
										 |  |  | var test = colors.red("hopefully colorless output"); | 
					
						
							| 
									
										
										
										
											2011-09-25 10:11:37 +02:00
										 |  |  | util.puts('Rainbows are fun!'.rainbow); | 
					
						
							|  |  |  | util.puts('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
 | 
					
						
							|  |  |  | util.puts('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
 | 
					
						
							|  |  |  | //util.puts('zalgo time!'.zalgo);
 | 
					
						
							|  |  |  | util.puts(test.stripColors); | 
					
						
							|  |  |  | util.puts("a".grey + " b".black); | 
					
						
							| 
									
										
										
										
											2011-07-14 15:59:52 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-25 10:11:37 +02:00
										 |  |  | util.puts(colors.rainbow('Rainbows are fun!')); | 
					
						
							|  |  |  | util.puts(colors.italic('So ') + colors.underline('are') + colors.bold(' styles! ') + colors.inverse('inverse')); // styles not widely supported
 | 
					
						
							|  |  |  | util.puts(colors.bold(colors.italic(colors.underline(colors.red('Chains are also cool.'))))); // styles not widely supported
 | 
					
						
							|  |  |  | //util.puts(colors.zalgo('zalgo time!'));
 | 
					
						
							|  |  |  | util.puts(colors.stripColors(test)); | 
					
						
							|  |  |  | util.puts(colors.grey("a") + colors.black(" b")); | 
					
						
							| 
									
										
										
										
											2011-07-14 18:08:57 -07:00
										 |  |  | 
 |