simple-string-table
it allows to create a simple impression of a table based on an array
Last updated 8 years ago by uppercod .
ISC · Original npm · Tarball · package.json
$ npm install simple-string-table 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (8 years ago)

1 Versions

  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE