1.0.0 • Published 5 years ago

simple-string-table v1.0.0

Weekly downloads
446
License
ISC
Repository
-
Last release
5 years ago

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