Socket
Socket
Sign inDemoInstall

colors

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

3

lib/colors.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc