mirror of
https://github.com/flynx/colors.js.git
synced 2025-12-27 13:52:11 +00:00
932 B
932 B
colors.js - get color and style in your node.js console like what
var sys = require('sys');
var colors = require('./colors');
sys.puts('hello'.green); // outputs green text
// from the example.js file
sys.puts('C'.yellow+'o'.red+'l'.grey+'o'.cyan+'r'.magenta+'s'.magenta+' are '.green + 'fun!'.yellow);
sys.puts('C'.yellow+'o'.red+'l'.grey+'o'.cyan+'r'.magenta+'s'.magenta+' are '.green + 'fun!'.yellow);
sys.puts('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
sys.puts('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported