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

console-table-printer

Package Overview
Dependencies
Maintainers
1
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-table-printer - npm Package Compare versions

Comparing version 1.1.6 to 1.1.8

2

dist/index.js

@@ -1,2 +0,2 @@

'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +3,0 @@ var console_table_printer_1 = require("./src/console-table-printer");

@@ -14,3 +14,3 @@ "use strict";

[table_constants_1.COLOR.white_bold]: "\x1b[01m",
[table_constants_1.COLOR.reset]: "\x1b[0m",
[table_constants_1.COLOR.reset]: "\x1b[0m"
};

@@ -17,0 +17,0 @@ class ColoredConsoleLine {

@@ -1,3 +0,3 @@

import { TableInternal } from './internal-table';
import { RowOptionsRaw } from './table-helpers';
import { TableInternal } from "./internal-table";
import { RowOptionsRaw } from "./table-helpers";
export declare class Table {

@@ -4,0 +4,0 @@ table: TableInternal;

@@ -1,3 +0,3 @@

import { TABLE_BORDER_STYLES, TABLE_STYLE_DETAILS } from './table-constants';
import { Column, Row, RowOptions } from './table-helpers';
import { TABLE_BORDER_STYLES, TABLE_STYLE_DETAILS } from "./table-constants";
import { Column, Row, RowOptions } from "./table-helpers";
export interface ComplexOptions {

@@ -4,0 +4,0 @@ style: string;

@@ -14,3 +14,3 @@ "use strict";

}
else if (typeof options === 'object') {
else if (typeof options === "object") {
this.initDetailed(options);

@@ -32,7 +32,12 @@ }

initDetailed(options) {
this.tableStyle = (options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder;
this.columns = options.columns && options.columns.map(column => ({
name: column.name,
alignment: (column.alignment && table_constants_1.COLUMN_ALIGNMENT[column.alignment]) || table_constants_1.COLUMN_ALIGNMENT.right
})) || [];
this.tableStyle =
(options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder;
this.columns =
(options.columns &&
options.columns.map(column => ({
name: column.name,
alignment: (column.alignment && table_constants_1.COLUMN_ALIGNMENT[column.alignment]) ||
table_constants_1.COLUMN_ALIGNMENT.right
}))) ||
[];
}

@@ -39,0 +44,0 @@ createColumnFromRow(text) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
;
var TABLE_BORDER_STYLES;

@@ -11,3 +9,2 @@ (function (TABLE_BORDER_STYLES) {

})(TABLE_BORDER_STYLES = exports.TABLE_BORDER_STYLES || (exports.TABLE_BORDER_STYLES = {}));
;
exports.TABLE_STYLE = {

@@ -77,3 +74,2 @@ thinBorder: {

})(COLUMN_ALIGNMENT = exports.COLUMN_ALIGNMENT || (exports.COLUMN_ALIGNMENT = {}));
;
var COLOR;

@@ -93,2 +89,1 @@ (function (COLOR) {

})(COLOR = exports.COLOR || (exports.COLOR = {}));
;
{
"name": "console-table-printer",
"version": "1.1.6",
"version": "1.1.8",
"repository": "github:ayonious/console-table-printer",

@@ -5,0 +5,0 @@ "description": "Printing pretty tables on console log",

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