simple-string-table

1.0.0 • Public • Published

simple-string-table

It is created for the decoration of consoles, it allows to create a simple impression of a table based on an array, this script calculates the spaces of each column to justify the code.

let table = require("simple-string-table");
 
let example = table([
    ["GZIP", "BRO", "FILE"],
    ["GZIP", "BRO123asdasdads", "FILE"],
    ["GZIP", "BRO", "FILE"],
    ["GZIP", "BRO12", "FILE"],
    ["GZIP", "BRO3", "FILE"]
]);
 
console.log(example);
GZIP  BRO              FILE
GZIP  BRO123asdasdads  FILE
GZIP  BRO              FILE
GZIP  BRO12            FILE
GZIP  BRO3             FILE

Readme

Keywords

Package Sidebar

Install

npm i simple-string-table

Weekly Downloads

1,497

Version

1.0.0

License

ISC

Unpacked Size

1.4 kB

Total Files

3

Last publish

Collaborators

  • uppercod