colors
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -45,6 +45,7 @@ /* | ||
colors.strip = function(str){ | ||
colors.stripColors = colors.strip = function(str){ | ||
return ("" + str).replace(/\x1B\[\d+m/g, ''); | ||
}; | ||
var stylize = colors.stylize = function stylize (str, style) { | ||
@@ -51,0 +52,0 @@ return ansiStyles[style].open + str + ansiStyles[style].close; |
@@ -29,2 +29,6 @@ var colors = require('./colors'), | ||
addProperty('stripColors', function () { | ||
return colors.strip(this); | ||
}); | ||
addProperty("trap", function(){ | ||
@@ -31,0 +35,0 @@ return colors.trap(this); |
{ | ||
"name": "colors", | ||
"description": "get colors in your node.js console", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Marak Squires", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/Marak/colors.js", |
109147
724