Comparing version 0.3.1 to 0.3.2
@@ -11,3 +11,3 @@ | ||
(function() { | ||
var _, args, bg, bgrd, bgrdColors, c, ci, colorStream, colorize, colors, config, dimText, expand, fatText, fs, funkyBgrd, funkyText, j, k, len, len1, len2, len3, log, m, matchr, matchrConfig, noon, o, pattern, patterns, ref, ref1, ref2, ref3, regexes, sds, stream, text, textColors, | ||
var _, args, bg, bgrd, bgrdColors, c, ci, colorStream, colorize, colors, config, dimText, expand, fatText, fs, funkyBgrd, funkyText, j, k, len, len1, len2, len3, log, m, matchr, matchrConfig, noon, o, path, pattern, patterns, ref, ref1, ref2, ref3, regexes, sds, stream, syntaxFile, text, textColors, | ||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
@@ -19,2 +19,4 @@ | ||
path = require('path'); | ||
colors = require('colors'); | ||
@@ -135,2 +137,9 @@ | ||
if (args.file != null) { | ||
syntaxFile = path.join(__dirname, '..', 'syntax', path.extname(args.file).substr(1) + '.noon'); | ||
if (fs.existsSync(syntaxFile)) { | ||
patterns = expand(sds.load(syntaxFile)); | ||
} | ||
} | ||
if (args.pattern != null) { | ||
@@ -137,0 +146,0 @@ patterns = expand(noon.parse(args.pattern)); |
{ | ||
"name": "colorcat", | ||
"description": "loves colors", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16469
11
407