colors.js/ReadMe.md

23 lines
540 B
Markdown
Raw Normal View History

2010-06-11 03:15:47 -04:00
<h1>colors.js - get color and style in your nodejs console like what</h1>
2010-06-11 02:59:01 -04:00
2010-06-11 03:00:27 -04:00
var sys = require('sys');
2010-06-11 03:02:42 -04:00
var colors = require('colors');
2010-06-11 03:00:27 -04:00
sys.puts('whats up dog'.green);
2010-06-11 03:15:47 -04:00
sys.puts('i cant allow you to do that dave'.italic.grey.underline + 'ill beat you with the chain'.bold.red);
2010-06-11 03:00:27 -04:00
var str = "I".green + " Like".yellow + " Colors!".grey;
2010-06-11 03:02:42 -04:00
sys.puts(str);
2010-06-11 03:15:47 -04:00
<h2>colors and styles!</h2>
2010-06-11 03:07:40 -04:00
- bold
- italic
- underline
- yellow
- cyan
- white
- green
- red
- grey
2010-06-11 03:04:50 -04:00
2010-06-11 03:02:42 -04:00
optional NPM install : npm install colors