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.9 to 1.1.10

2

dist/src/colored-console-line.js

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

addWithColor(color, text) {
this.text += COLOR_MAP[color];
this.text += color && COLOR_MAP[color];
this.text += text;

@@ -24,0 +24,0 @@ this.text += COLOR_MAP[table_constants_1.COLOR.reset];

@@ -1,6 +0,6 @@

import { TableInternal } from "./internal-table";
import { TableInternal, ComplexOptions } from "./internal-table";
import { RowOptionsRaw } from "./table-helpers";
export declare class Table {
table: TableInternal;
constructor(options?: any);
constructor(options?: ComplexOptions | string[]);
addColumn(column: string): void;

@@ -7,0 +7,0 @@ addColumns(columns: string[]): void;

import { TABLE_BORDER_STYLES, TABLE_STYLE_DETAILS } from "./table-constants";
import { Column, Row, RowOptions } from "./table-helpers";
interface ColumnOptionsRaw {
name: string;
alignment?: string;
}
export interface ComplexOptions {
style: string;
columns: [{
name: string;
alignment: string;
}];
style?: string;
columns?: ColumnOptionsRaw[];
}

@@ -27,1 +28,2 @@ export declare class TableInternal {

}
export {};

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

this.tableStyle =
(options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder;
(options && options.style && table_constants_1.TABLE_STYLE[options.style]) || table_constants_1.TABLE_STYLE.thinBorder;
this.columns =

@@ -38,4 +38,3 @@ (options.columns &&

name: column.name,
alignment: (column.alignment && table_constants_1.COLUMN_ALIGNMENT[column.alignment]) ||
table_constants_1.COLUMN_ALIGNMENT.right
alignment: table_constants_1.COLUMN_ALIGNMENT[column.alignment] || table_constants_1.COLUMN_ALIGNMENT.right
}))) ||

@@ -42,0 +41,0 @@ [];

@@ -11,3 +11,3 @@ import { COLUMN_ALIGNMENT, COLOR } from "./table-constants";

}
export declare function convertRawRowOptionsToStanrd(options?: RowOptionsRaw): RowOptions | undefined;
export declare function convertRawRowOptionsToStanrd(options?: RowOptionsRaw): RowOptions;
export interface RowOptionsRaw {

@@ -21,11 +21,11 @@ color: string;

export declare function createTableHorizontalBorders({ left, mid, right, other }: {
left: any;
mid: any;
right: any;
other: any;
}, column_lengths: any): any;
left: string;
mid: string;
right: string;
other: string;
}, column_lengths: number[]): string;
export declare function createColum(name: string): Column;
export declare function createRow(color: COLOR, text: string): Row;
export declare function findMaxLenOfColumn(column: Column, rows: Row[]): number;
export declare function printTableHorizontalBorders(style: any, column_lengths: any): string;
export declare function printTableHorizontalBorders(style: any, column_lengths: number[]): string;
export declare function createHeaderAsRow(createRow: any, columns: Column[]): Row;

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

function convertRawRowOptionsToStanrd(options) {
if (options && options.color) {
if (options) {
return {

@@ -8,0 +8,0 @@ color: table_constants_1.COLOR[options.color]

{
"name": "console-table-printer",
"version": "1.1.9",
"version": "1.1.10",
"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