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.0.0-beta7 to 1.0.0-beta8

2

package.json
{
"name": "console-table-printer",
"version": "1.0.0-beta7",
"version": "1.0.0-beta8",
"repository": "github:ayonious/console-table-printer",

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

@@ -56,3 +56,3 @@ # Print Pretty tables on Your Console

Documentation
## Documentation

@@ -99,18 +99,17 @@ ### Table instance creation

Example usage: To Create a row of color blue
```js
table.addRow(rowObject, {color: 'blue'});
```
### possible border Style of table
thinBorder
┌────────────┬─────┬──────┐
│ foo │ bar │ baz │
├────────────┼─────┼──────┤
│ frobnicate │ bar │ quuz │
└────────────┴─────┴──────┘
* thinBorder
fatBorder:
╔══════╦═════╦══════╗
║ hob ║ foo ║ mia ║
╟══════╬═════╬══════╢
║ ball ║ fox ║ mama ║
╚══════╩═════╩══════╝
![Screenshot](https://cdn.jsdelivr.net/gh/ayonious/console-table-printer@master/static-resources/screenshot-thin-border.png)
* fatBorder:
![Screenshot](https://cdn.jsdelivr.net/gh/ayonious/console-table-printer@master/static-resources/screenshot-fat-border.png)
Example for creating fat border Table `new Table({style: 'fatBorder'});`

@@ -117,0 +116,0 @@

@@ -25,3 +25,3 @@ const {TABLE_STYLE} = require('./table-constants');

this.tableStyle = TABLE_STYLE[options.style || 'thinBorder'];
this.columns = options.columns.map( column => (
this.columns = options.columns && options.columns.map( column => (
{

@@ -31,3 +31,3 @@ name: column.name,

})
);
) || [];
}

@@ -34,0 +34,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