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

sloc

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sloc - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

16

lib/cli.js

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

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