mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-10-31 20:10:09 +00:00 
			
		
		
		
	updated example
This commit is contained in:
		
							parent
							
								
									d8c775fd62
								
							
						
					
					
						commit
						9eb63c1a88
					
				| @ -1,12 +1,11 @@ | ||||
| <h1>colors.js - get color and style in your nodejs console like what</h1> | ||||
| 
 | ||||
|        var sys = require('sys'); | ||||
|        var colors = require('colors'); | ||||
| 
 | ||||
|        sys.puts('Colors '.green + 'are '.magenta + 'fun!'.blue); | ||||
|        sys.puts('So '.bold + 'are'.underline + ' styles!'.italic); // styles don't work in standard Mac OS Terminal.app | ||||
|        sys.puts('Chains are also cool.'.bold.underline.red); // styles dont't work in standard Mac OS Terminal.app | ||||
|        var colors = require('./colors'); | ||||
| 
 | ||||
|        sys.puts('C'.yellow+'o'.red+'l'.grey+'o'.cyan+'r'.magenta+'s'.magenta+' are '.green + 'fun!'.yellow); | ||||
|        sys.puts('So '.bold + 'are'.underline + ' styles! '.italic + 'inverse'.inverse); // styles don't work in standard Mac OS Terminal.app | ||||
|        sys.puts('Chains are also cool.'.bold.italic.underline.red); // styles dont't work in standard Mac OS Terminal.app | ||||
| 
 | ||||
| <h2>colors and styles!</h2> | ||||
| - bold | ||||
|  | ||||
							
								
								
									
										6
									
								
								example.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								example.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| var sys = require('sys'); | ||||
| var colors = require('./colors'); | ||||
| 
 | ||||
| sys.puts('C'.yellow+'o'.red+'l'.grey+'o'.cyan+'r'.magenta+'s'.magenta+' are '.green + 'fun!'.yellow); | ||||
| sys.puts('So '.bold + 'are'.underline + ' styles! '.italic + 'inverse'.inverse); // styles don't work in standard Mac OS Terminal.app
 | ||||
| sys.puts('Chains are also cool.'.bold.italic.underline.red); // styles dont't work in standard Mac OS Terminal.app
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user