Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more paige settings

  • Loading branch information...
commit 6842349de972888ea8b3b8568963eba49b6e2a36 1 parent a412937
@mgutz authored
View
6 docs/colors.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html> <html> <head> <title>colors.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="rocco.css" /> </head> <body> <div id="navbar"> <h3>mgutz-colors - ANSI colors string library.<em></em></h3> </div> <div id="container"> <div id="background"></div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> colors.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="cm">/*============================================================================</span>
-<span class="cm"> * Copyright(c) 2010 Mario L Gutierrez &lt;mario@mgutz.com&gt;</span>
+<!DOCTYPE html> <html> <head> <title>colors.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="rocco.css" /> </head> <body> <div id="navbar"> <h3>mgutz-colors - ANSI colors string library for sexy color output.<em></em></h3> </div> <div id="container"> <div id="background"></div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> colors.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="cm">/*============================================================================</span>
+<span class="cm"> * Copyright(c) 2012 Mario L Gutierrez &lt;mario@mgutz.com&gt;</span>
<span class="cm"> * MIT Licensed</span>
<span class="cm"> *==========================================================================*/</span>
-<span class="cm">/* Whether to colorize */</span>
+<span class="cm">/* Whether to disable colors. */</span>
<span class="nx">exports</span><span class="p">.</span><span class="nx">plain</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
View
40 docs/index.html
@@ -1,60 +1,48 @@
-<!DOCTYPE html> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>mgutz-colors</title> <style> body { font-size: 16px; line-height: 24px; background: #fff url("bg.png"); color: #252519; font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif; padding: 0 0 50px 50px; } div.container { width: 720px; margin: 50px 0 50px 50px; } p { width: 550px; } #documentation p { margin-bottom: 4px; } a, a:visited { padding: 0 2px; text-decoration: none; background: #dbe6f3; color: #3f6fa5; } a:active, a:hover { color: #dbe6f3; background: #3f6fa5; } h1, h2, h3, h4, h5, h6 { margin-top: 40px; width: 550px; line-height: 1.25em; } b.header { font-size: 18px; } span.alias { font-size: 14px; font-style: italic; margin-left: 20px; } table, tr, td { margin: 0; padding: 0; } td { padding: 2px 12px 2px 0; } ul { list-style-type: circle; padding: 0 0 0 20px; } li { width: 500px; margin-bottom: 10px; } code, pre, tt { font-family: Monaco, Consolas, "Lucida Console", monospace; font-size: 12px; line-height: 18px; color: #555529; } pre { font-size: 12px; padding: 2px 0 2px 12px; border-left: 6px solid #aaaa99; margin: 0px 0 30px; } #ribbon { line-height: 0; } #ribbon:hover { background: none; } #ribbon img { position: fixed; top: 0; right: 0; border: 0; z-index: 2; } </style> </head> <body> <a id="ribbon" href="https://github.com/mgutz/mgutz-colors"> <img src="https://a248.e.akamai.net/assets.github.com/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub"></a> <h1>mgutz-colors</h1> <em>ANSI colors string library.</em> <h3>Source files:</h3> <ol> <li><a href="colors.html">colors.js</a></li> </ol> <h2>Install</h2>
+<!DOCTYPE html> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>mgutz-colors</title> <style> body { font-size: 16px; line-height: 24px; background: #fff url("bg.png"); color: #252519; font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif; padding: 0 0 50px 50px; } div.container { width: 720px; margin: 50px 0 50px 50px; } p { width: 550px; } #documentation p { margin-bottom: 4px; } a, a:visited { padding: 0 2px; text-decoration: none; background: #dbe6f3; color: #3f6fa5; } a:active, a:hover { color: #dbe6f3; background: #3f6fa5; } h1, h2, h3, h4, h5, h6 { margin-top: 40px; width: 550px; line-height: 1.25em; } b.header { font-size: 18px; } span.alias { font-size: 14px; font-style: italic; margin-left: 20px; } table, tr, td { margin: 0; padding: 0; } td { padding: 2px 12px 2px 0; } ul { list-style-type: circle; padding: 0 0 0 20px; } li { width: 500px; margin-bottom: 10px; } code, pre, tt { font-family: Monaco, Consolas, "Lucida Console", monospace; font-size: 12px; line-height: 18px; color: #555529; } pre { font-size: 12px; padding: 2px 0 2px 12px; border-left: 6px solid #aaaa99; margin: 0px 0 30px; } #ribbon { line-height: 0; } #ribbon:hover { background: none; } #ribbon img { position: fixed; top: 0; right: 0; border: 0; z-index: 2; } </style> </head> <body> <a id="ribbon" href="https://github.com/mgutz/mgutz-colors"> <img src="https://a248.e.akamai.net/assets.github.com/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub"></a> <h1>mgutz-colors</h1> <em>ANSI colors string library for sexy color output.</em> <h3>Source files:</h3> <ol> <li><a href="colors.html">colors.js</a></li> </ol> <h2>Install</h2>
-<p>npm install mgutz-colors</p>
+<pre><code>npm install mgutz-colors</code></pre>
<h2>Using</h2>
<p>General usage</p>
-<pre>
-var color = require("mgutz-colors").color;
+<pre><code>var color = require("mgutz-colors").color;
-console.log(color("red on black", "red:black"));
-</pre>
+console.log(color("red on black", "red:black"));</code></pre>
<p>Style format is <code>color+attributes:bgColor+attributes</code></p>
-<pre>
-"red" // red
+<pre><code>"red" // red
"red+b" // red bold
"red+u" // red underline
"red+bh" // red bold high-intensity
"red:white" // red on white
-"red+b:white+h" // red bold on white high-intensity
-</pre>
+"red+b:white+h" // red bold on white high-intensity</code></pre>
<p>More flexible way to require it</p>
-<pre>
-var colors = require("mgutz-colors"),
- color = colors.color;
-</pre>
+<pre><code>var colors = require("mgutz-colors"),
+ color = colors.color;</code></pre>
<p>Be lazy</p>
-<pre>
-var bc = colors.fn("black:cyan");
-console.log(bc("this is black text on cyan"));
-</pre>
+<pre><code>var bc = colors.fn("black:cyan");
+console.log(bc("this is black text on cyan"));</code></pre>
<p>Turn off colors easily</p>
-<pre>
-colors.plain = true;
-console.log(bc("this is plain now"));
-</pre>
+<pre><code>colors.plain = true;
+console.log(bc("this is plain now"));</code></pre>
<p>See all color combinations in your terminal</p>
-<pre>
-npm test
-</pre>
+<pre><code>npm test</code></pre>
<h2>License</h2>
<p>(The MIT License)</p>
-<p>Copyright (c) 2012 Mario Gutierrez <a href="&#x6D;&#97;&#105;&#108;&#x74;&#111;:&#109;&#97;&#114;&#x69;&#111;&#x40;&#x6D;&#x67;&#117;&#116;&#x7A;&#46;&#99;&#111;m">&#109;&#97;&#114;&#x69;&#111;&#x40;&#x6D;&#x67;&#117;&#116;&#x7A;&#46;&#99;&#111;m</a></p>
+<p>Copyright (c) 2012 Mario Gutierrez <a href="&#x6D;&#97;&#x69;lt&#111;:&#x6D;&#97;&#114;&#x69;&#x6F;&#64;&#x6D;g&#117;&#x74;&#122;&#46;&#x63;&#111;&#109;">&#x6D;&#97;&#114;&#x69;&#x6F;&#64;&#x6D;g&#117;&#x74;&#122;&#46;&#x63;&#111;&#109;</a></p>
<p>Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
4 lib/colors.js
@@ -1,9 +1,9 @@
/*============================================================================
- * Copyright(c) 2010 Mario L Gutierrez <mario@mgutz.com>
+ * Copyright(c) 2012 Mario L Gutierrez <mario@mgutz.com>
* MIT Licensed
*==========================================================================*/
-/* Whether to colorize */
+/* Whether to disable colors. */
exports.plain = false;
View
2  package.json
@@ -1,7 +1,7 @@
{
"author": "Mario Gutierrez <mario@mgutz.com> (http://mgutz.com)",
"name": "mgutz-colors",
- "description": "ANSI colors string library.",
+ "desciption" : "ANSI colors string library for sexy color output.",
"version": "0.1.0",
"homepage": "https://github.com/mgutz/mgutz-colors",
"repository": {
View
2  paige.config
@@ -4,7 +4,7 @@
"include_index" : true,
"docco_files" : "lib/*.js",
"header" : "mgutz-colors",
- "subheader" : "ANSI colors string library.",
+ "subheader" : "ANSI colors string library for sexy color output.",
"background" : "project-paper",
"github" : "https://github.com/mgutz/mgutz-colors"
}
Please sign in to comment.
Something went wrong with that request. Please try again.