colors 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/colors.js CHANGED
@@ -42,10 +42,11 @@ if (typeof colors.enabled === "undefined") {
42
42
  colors.enabled = colors.supportsColor;
43
43
  }
44
44
 
45
- colors.strip = function(str){
45
+ colors.stripColors = colors.strip = function(str){
46
46
  return ("" + str).replace(/\x1B\[\d+m/g, '');
47
47
  };
48
48
 
49
+
49
50
  var stylize = colors.stylize = function stylize (str, style) {
50
51
  return ansiStyles[style].open + str + ansiStyles[style].close;
51
52
  }
@@ -26,6 +26,10 @@ module['exports'] = function () {
26
26
  return colors.strip(this);
27
27
  });
28
28
 
29
+ addProperty('stripColors', function () {
30
+ return colors.strip(this);
31
+ });
32
+
29
33
  addProperty("trap", function(){
30
34
  return colors.trap(this);
31
35
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "colors",
3
3
  "description": "get colors in your node.js console",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "author": "Marak Squires",
6
6
  "homepage": "https://github.com/Marak/colors.js",
7
7
  "bugs": "https://github.com/Marak/colors.js/issues",