mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-10 13:27:48 +00:00
23 lines
449 B
Markdown
23 lines
449 B
Markdown
<h1>colors.js - get color in your nodejs console like what</h1>
|
|
|
|
var sys = require('sys');
|
|
var colors = require('colors');
|
|
sys.puts('whats up dog'.green);
|
|
sys.puts('i cant allow you to do that dave'.red);
|
|
var str = "I".green + " Like".yellow + " Colors!".grey;
|
|
sys.puts(str);
|
|
|
|
|
|
-bold
|
|
-italic
|
|
-underline
|
|
-yellow
|
|
-cyan
|
|
-white
|
|
-green
|
|
-red
|
|
-grey
|
|
|
|
|
|
|
|
optional NPM install : npm install colors |