Permalink
Browse files

first commit

  • Loading branch information...
1 parent 296e23d commit 8a96aed7847e5ac6833fb8b42b0bd90143c817cd @constantology committed Feb 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 ansi-pansi.js
  2. +1 −1 package.json
View
@@ -8,7 +8,7 @@ var code = {
bg_black : 40, bg_red : 41, bg_green : 42, bg_yellow : 43, bg_blue : 44, bg_magenta : 45, bg_cyan : 46, bg_white : 47
};
-exports = function ansi_pansi( str, colour ) {
+module.exports = function ansi_pansi( str, colour ) {
var f = colour.split( /[\s\+]/ ).reduce( function( s, a ) { return ( a in code ) ? s += code[a] + ';' : s; }, '' );
return ( f.length ? '\033[' + f + 'm' : f ) + str + '\033[0m';
};
View
@@ -16,5 +16,5 @@
"type" : "git",
"url" : "git@github.com:constantology/ansi-pansi.git"
},
- "version" : "0.0.1"
+ "version" : "0.0.2"
}

0 comments on commit 8a96aed

Please sign in to comment.