Socket
Socket
Sign inDemoInstall

text-table

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

6

index.js

@@ -8,3 +8,3 @@ module.exports = function (rows_, opts) {

row.forEach(function (c, ix) {
var n = String(c.split('.')[1] || '').length;
var n = (String(c).split('.')[1] || '').length;
if (!acc[ix] || n > acc[ix]) acc[ix] = n;

@@ -37,4 +37,4 @@ });

return row.map(function (c, ix) {
var n = sizes[ix] - c.length;
var s = Array(n + 1).join(' ');
var n = (sizes[ix] - String(c).length) || 0;
var s = Array(Math.max(n + 1, 1)).join(' ');
if (align[ix] === 'r' || align[ix] === '.') {

@@ -41,0 +41,0 @@ return s + c;

{
"name": "text-table",
"version": "0.0.0",
"version": "0.0.1",
"description": "borderless text tables suitable for printing to stdout",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc