Socket
Socket
Sign inDemoInstall

cliff

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cliff - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/gh-1-regression-test.js

11

lib/cliff.js

@@ -75,3 +75,5 @@ /*

for (i = 0; i < arrs.length; i += 1) {
lengths.push(winston.longestElement(arrs[i]));
lengths.push(winston.longestElement(arrs[i].map(function(elem) {
return (elem || '').toString();
})));
}

@@ -96,6 +98,7 @@

function stringifyRow(row, colorize) {
var rowtext = '', padding, item, i;
var rowtext = '', padding, item, i, length;
for (i = 0; i < row.length; i += 1) {
item = colorize ? row[i][colors[i]] : row[i];
padding = row[i].length < lengths[i] ? lengths[i] - row[i].length + 2 : 2;
length = (row[i] || '').toString().length;
padding = length < lengths[i] ? lengths[i] - length + 2 : 2;
rowtext += item + new Array(padding).join(' ');

@@ -213,2 +216,2 @@ }

pad();
};
};
{
"name": "cliff",
"description": "Your CLI formatting friend.",
"version": "0.1.0",
"version": "0.1.1",
"author": "Nodejitsu <info@nodejitsu.com>",

@@ -6,0 +6,0 @@ "repository": {

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