Skip to content

explodingbarrel/nodejs-termcolors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal Colors for Node.js command line apps

var sys = require('sys'),
colors = require('./lib/termcolors').colors;

var red = colors.red(colors.bg_dgray(colors.bold('This should be bold red with a dark gray bg.')));
var blue = colors.blue('This should be blue.', true);
var purple = colors.purple(colors.bg_lgray('This should be purple with a light gray bg.'));
var yellow = colors.yellow('This should be yellow.', true);


sys.puts('none ' + red + ' :: ' + blue + ' :: none again');
sys.puts('none ' + colors.bold(yellow) + ' :: ' + purple + ' :: none again');

Screenshot of test.js
test.js screenshot

About

Add terminal color support to command line node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.4%
  • Shell 27.6%