console-table

0.1.2 • Public • Published

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

*/

Readme

Keywords

none

Package Sidebar

Install

npm i console-table

Weekly Downloads

34

Version

0.1.2

License

BSD

Last publish

Collaborators

  • fnobi