Comparing version 0.3.1 to 0.3.2
@@ -7,3 +7,3 @@ // Generated by CoffeeScript 2.7.0 | ||
*/ | ||
var async, collect, colorRegex, exts, filterFiles, fmtOpts, fmts, fs, groupByExt, helpers, k, keyvalue, list, object, options, parseFile, path, pkg, print, programm, readDir, readSingleFile, readSource, readdirp, sloc; | ||
var async, collect, colorRegex, exts, filterFiles, fmtOpts, fmts, fs, groupByExt, helpers, k, keyvalue, list, object, options, parseFile, path, pkg, print, programOptions, programm, readDir, readSingleFile, readSource, readdirp, sloc; | ||
@@ -87,3 +87,3 @@ fs = require('fs'); | ||
var f, fmt, out; | ||
f = programm.format || 'simple'; | ||
f = programOptions.format || 'simple'; | ||
if ((fmt = fmts[f]) == null) { | ||
@@ -93,3 +93,3 @@ return console.error(`Error: format ${f} is not supported`); | ||
out = fmt(result, opts, fmtOpts); | ||
if (programm.stripColors) { | ||
if (programOptions.stripColors) { | ||
out = out.replace(colorRegex, ''); | ||
@@ -104,6 +104,6 @@ } | ||
var exclude, i, include, len, r, res, res2, results; | ||
res = programm.exclude ? (exclude = new RegExp(programm.exclude), files.filter(function(x) { | ||
res = programOptions.exclude ? (exclude = new RegExp(programOptions.exclude), files.filter(function(x) { | ||
return !exclude.test(x.path); | ||
})) : files; | ||
res2 = programm.include ? (include = new RegExp(programm.include), res.filter(function(x) { | ||
res2 = programOptions.include ? (include = new RegExp(programOptions.include), res.filter(function(x) { | ||
return include.test(x.path); | ||
@@ -134,6 +134,8 @@ })) : res; | ||
options.keys = programm.keys; | ||
programOptions = programm.opts(); | ||
options.details = programm.details; | ||
options.keys = programOptions.keys; | ||
options.details = programOptions.details; | ||
options.alias = programm.alias; | ||
@@ -140,0 +142,0 @@ |
{ | ||
"name": "sloc", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "lib/sloc", | ||
@@ -5,0 +5,0 @@ "bin": "bin/sloc", |
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
35294
910