mirror of
https://github.com/flynx/colors.js.git
synced 2025-11-02 04:50:09 +00:00
29 lines
614 B
Markdown
29 lines
614 B
Markdown
<h1>colors.js - get color and style in your node.js console like what</h1>
|
|
|
|
<img src="http://i.imgur.com/goJdO.png" border = "0"/>
|
|
|
|
var sys = require('sys');
|
|
var colors = require('./colors');
|
|
|
|
sys.puts('hello'.green); // outputs green text
|
|
sys.puts('i like cake and pies'.underline.red) // outputs red underlined text
|
|
sys.puts('inverse the color'.inverse); // inverses the color
|
|
|
|
<h2>colors and styles!</h2>
|
|
- bold
|
|
- italic
|
|
- underline
|
|
- inverse
|
|
- yellow
|
|
- cyan
|
|
- white
|
|
- magenta
|
|
- green
|
|
- red
|
|
- grey
|
|
- blue
|
|
|
|
|
|
### Authors
|
|
|
|
#### Alexis Sellier (cloudhead) , Marak Squires |