| 
									
										
										
										
											2010-06-11 08:19:44 -04:00
										 |  |  | <h1>colors.js - get color and style in your node.js console like what</h1> | 
					
						
							| 
									
										
										
										
											2010-06-11 02:59:01 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 08:01:54 -04:00
										 |  |  | <img src="http://i.imgur.com/goJdO.png" border = "0"/> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 03:00:27 -04:00
										 |  |  |        var sys = require('sys'); | 
					
						
							| 
									
										
										
										
											2010-06-11 07:25:35 -04:00
										 |  |  |        var colors = require('./colors'); | 
					
						
							| 
									
										
										
										
											2010-06-11 03:15:47 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 08:54:08 -04:00
										 |  |  |        sys.puts('hello'.green); // outputs green text | 
					
						
							| 
									
										
										
										
											2010-06-11 22:07:23 -04:00
										 |  |  |        sys.puts('i like cake and pies'.underline.red) // outputs red underlined text | 
					
						
							|  |  |  |        sys.puts('inverse the color'.inverse); // inverses the color | 
					
						
							| 
									
										
										
										
											2010-06-11 07:57:53 -04:00
										 |  |  |         | 
					
						
							| 
									
										
										
										
											2010-06-11 03:15:47 -04:00
										 |  |  | <h2>colors and styles!</h2> | 
					
						
							| 
									
										
										
										
											2010-06-11 03:07:40 -04:00
										 |  |  | - bold | 
					
						
							|  |  |  | - italic | 
					
						
							|  |  |  | - underline | 
					
						
							| 
									
										
										
										
											2010-06-11 07:08:56 -04:00
										 |  |  | - inverse | 
					
						
							| 
									
										
										
										
											2010-06-11 03:07:40 -04:00
										 |  |  | - yellow | 
					
						
							|  |  |  | - cyan | 
					
						
							|  |  |  | - white | 
					
						
							| 
									
										
										
										
											2010-06-11 07:08:56 -04:00
										 |  |  | - magenta | 
					
						
							| 
									
										
										
										
											2010-06-11 03:07:40 -04:00
										 |  |  | - green | 
					
						
							|  |  |  | - red | 
					
						
							|  |  |  | - grey | 
					
						
							| 
									
										
										
										
											2010-06-11 07:08:56 -04:00
										 |  |  | - blue | 
					
						
							| 
									
										
										
										
											2010-06-11 03:04:50 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 07:08:56 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-11 07:10:02 -04:00
										 |  |  | ### Authors 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-15 00:05:22 -04:00
										 |  |  | #### Alexis Sellier (cloudhead) , Marak Squires 
 |