mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-11-03 21:40:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			722 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			722 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
<h1>colors.js - get color and style in your node.js console like what</h1>
 | 
						|
 | 
						|
<img src="http://i.imgur.com/goJdO.png" border = "0"/>
 | 
						|
 | 
						|
       var sys = require('sys');
 | 
						|
       var colors = require('./colors');
 | 
						|
 | 
						|
       sys.puts('hello'.green); // outputs green text
 | 
						|
       sys.puts('i like cake and pies'.underline.red) // outputs red underlined text
 | 
						|
       sys.puts('inverse the color'.inverse); // inverses the color
 | 
						|
       sys.puts('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
 | 
						|
       
 | 
						|
<h2>colors and styles!</h2>
 | 
						|
- bold
 | 
						|
- italic
 | 
						|
- underline
 | 
						|
- inverse
 | 
						|
- yellow
 | 
						|
- cyan
 | 
						|
- white
 | 
						|
- magenta
 | 
						|
- green
 | 
						|
- red
 | 
						|
- grey
 | 
						|
- blue
 | 
						|
 | 
						|
 | 
						|
### Authors 
 | 
						|
 | 
						|
#### Alexis Sellier (cloudhead) , Marak Squires , Justin Campbell, Dustin Diaz (@ded)
 |