Skip to content

Instantly share code, notes, and snippets.

@drikin
Created July 2, 2012 04:00
Show Gist options
  • Save drikin/3030999 to your computer and use it in GitHub Desktop.
Save drikin/3030999 to your computer and use it in GitHub Desktop.
Colors Sample for node.js
var sys = require('util');
var colors = require('colors');
sys.puts('green'.green);
sys.puts('yellow'.yellow);
sys.puts('cyan'.cyan);
sys.puts('white'.white);
sys.puts('magenta'.magenta);
sys.puts('red'.red);
sys.puts('grey'.grey);
sys.puts('blue'.blue);
sys.puts('underline&red'.underline.red);
sys.puts('inverse'.inverse);
sys.puts('rainbow!!!'.rainbow);
sys.puts('rainbow.inverse!!!'.rainbow.inverse);
sys.puts('bold.red'.bold.red);
sys.puts('italic'.italic);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment