Socket
Socket
Sign inDemoInstall

tty-table

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tty-table - npm Package Compare versions

Comparing version 2.6.4 to 2.6.5

examples/empty-rows.js

4

examples/multiple-tables.js

@@ -29,7 +29,3 @@ var Table = require('../');

var c = Table(rows);
console.log(c.render());
//console.log(Table(header2, rows2).render());
//console.log(Table(header, rows).render());
{
"name": "tty-table",
"version": "2.6.4",
"version": "2.6.5",
"description": "Command line table generator.",

@@ -5,0 +5,0 @@ "main": "src/main.js",

@@ -237,3 +237,4 @@ let StripAnsi = require("strip-ansi");

? config.table.header[0][columnIndex] : {};
result = Format.inferColumnWidth(columnOptions,rows,columnIndex);
let measurableRows = (rows.length) ? rows : config.table.header[0];
result = Format.inferColumnWidth(columnOptions,measurableRows,columnIndex);

@@ -263,9 +264,9 @@ //add spaces for padding if not centered

prop = prop.toFixed(2)-0.01;
// when process.stdout.columns is 0, width will be negative
if (prop > 0) {
widths = widths.map(function(value){
return Math.floor(prop*value);
});
}
// when process.stdout.columns is 0, width will be negative
if (prop > 0) {
widths = widths.map(function(value){
return Math.floor(prop*value);
});
}

@@ -272,0 +273,0 @@ }

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