mirror of
https://github.com/flynx/colors.js.git
synced 2025-10-29 02:50:10 +00:00
updated readme to be more clear
This commit is contained in:
parent
e5fbc71a20
commit
16872c1d77
@ -6,12 +6,8 @@
|
||||
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
|
||||
sys.puts('i like cake and pies'.underline.red)j // outputs red underlined text
|
||||
sys.puts('inverse the color'.inverse);
|
||||
|
||||
<h2>colors and styles!</h2>
|
||||
- bold
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user