Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / karma-spec-reporter / node_modules / colors / ReadMe.md
1 # colors.js - get color and style in your node.js console ( and browser ) like what
2
3 <img src="http://i.imgur.com/goJdO.png" border = "0"/>
4
5
6 ## Installation
7
8     npm install colors
9
10 ## colors and styles!
11
12 - bold
13 - italic
14 - underline
15 - inverse
16 - yellow
17 - cyan
18 - white
19 - magenta
20 - green
21 - red
22 - grey
23 - blue
24 - rainbow
25 - zebra
26 - random
27
28 ## Usage
29
30 ``` js
31 var colors = require('./colors');
32
33 console.log('hello'.green); // outputs green text
34 console.log('i like cake and pies'.underline.red) // outputs red underlined text
35 console.log('inverse the color'.inverse); // inverses the color
36 console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
37 ```
38
39 # Creating Custom themes
40
41 ```js
42
43 var colors = require('colors');
44
45 colors.setTheme({
46   silly: 'rainbow',
47   input: 'grey',
48   verbose: 'cyan',
49   prompt: 'grey',
50   info: 'green',
51   data: 'grey',
52   help: 'cyan',
53   warn: 'yellow',
54   debug: 'blue',
55   error: 'red'
56 });
57
58 // outputs red text
59 console.log("this is an error".error);
60
61 // outputs yellow text
62 console.log("this is a warning".warn);
63 ```
64
65
66 ### Contributors 
67
68 Marak (Marak Squires)
69 Alexis Sellier (cloudhead)
70 mmalecki (Maciej MaƂecki)
71 nicoreed (Nico Reed)
72 morganrallen (Morgan Allen)
73 JustinCampbell (Justin Campbell)
74 ded (Dustin Diaz)
75
76
77 ####  , Marak Squires , Justin Campbell, Dustin Diaz (@ded)