Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

adds output modes to readme file #15

Closed
wants to merge 1 commit into from

2 participants

@hashar

Follow up issue #14
#14

update the ReadMe.md file to avoid dumb questions :-)

@hashar

Mind following up on this pull request? :-]

@Marak Marak closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 1, 2011
  1. @hashar
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 1 deletion.
  1. +11 −1 ReadMe.md
View
12 ReadMe.md
@@ -9,7 +9,17 @@
sys.puts('i like cake and pies'.underline.red) // outputs red underlined text
sys.puts('inverse the color'.inverse); // inverses the color
sys.puts('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
-
+
+<h2>Output modes</h2>
+colors.js support three different output modes:
+* `console` (default) to use ANSI escape sequences suitable for terminals
+* `browser` wrap strings with a colored HTML span
+* `none` return the string as is
+
+Ex:
+ require('colors').mode = 'none';
+
+
<h2>colors and styles!</h2>
- bold
- italic
Something went wrong with that request. Please try again.