Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colorcat

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorcat - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

38

js/colorcat.js

@@ -78,3 +78,3 @@

args = require('karg')("\ncolorcat\n\n file . ? the file to display or stdin . *\n" + textColors + "\n fat . ? " + '▲▲ fat'.bold.white + " . = false\n dim . = false\n ? |" + ' ▲▲ dim'.dim.white + " \n" + bgrdColors + "\n pattern . ? colorize with patterns in file\n \nversion " + (require(__dirname + "/../package.json").version));
args = require('karg')("\ncolorcat\n\n file . ? the file to display or stdin . *\n" + textColors + "\n fat . ? " + '▲▲ fat'.bold.white + " . = false\n dim . = false\n ? |" + ' ▲▲ dim'.dim.white + " \n" + bgrdColors + "\n pattern . ? colorize with pattern\n patternFile . ? colorize with patterns in file . - P\n \nversion " + (require(__dirname + "/../package.json").version));

@@ -103,18 +103,24 @@

if (args.pattern != null) {
patterns = sds.load(args.pattern);
if (_.isObject(patterns)) {
for (r in patterns) {
c = patterns[r];
regexes.push({
reg: new RegExp(r),
fun: c.map(function(i) {
return function(s) {
return colorize(i, s);
};
})
});
}
} else {
args.pattern = null;
patterns = noon.parse(args.pattern);
}
if (args.patternFile != null) {
patterns = sds.load(args.patternFile);
}
if (patterns != null) {
if (!args.pattern) {
args.pattern = true;
}
for (r in patterns) {
c = patterns[r];
regexes.push({
reg: new RegExp(r),
fun: c.map(function(i) {
return function(s) {
return colorize(i, s);
};
})
});
}
}

@@ -121,0 +127,0 @@

{
"name": "colorcat",
"version": "0.0.3",
"version": "0.0.4",
"description": "color's cat",

@@ -5,0 +5,0 @@ "main": "js/colorcat.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc