Comparing version 0.1.0 to 0.1.1
@@ -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": { |
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
15945
9
306