simple-string-table
v1.0.0
Published
it allows to create a simple impression of a table based on an array
Downloads
16,796
Readme
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