console-table
v0.1.2
Published
output table style log.
Downloads
106
Readme
console-table
output table style log.
install
from npm
npm install console-table
from github
git clone git://github.com/fnobi/console-table.git
usage
var consoleTable = require('console-table');
consoleTable([
['', 'col1', 'col2', 'col3'],
['row1', 'aa', 'bbbbbb', 'ccc'],
['row2', 'dddd', 'eeeeeeeee', 'fffff'],
['row3', 'g', 'hhhh', 'iiiiii']
]);
/*
=>
col1 col2 col3
row1 aa bbbbbb ccc
row2 dddd eeeeeeeee fffff
row3 g hhhh iiiiii
*/