table-view
v0.3.0
Published
array table view
Downloads
11
Readme
table-view
array table view
Installation
This module is installed via npm:
$ npm install table-view
Example Usage
var tableView = require('table-view');
var arr = [
['111', '222', '333', '4444'],
['1111111', '222222', '333333', '4444'],
['111', '222', '33333333333', '4444'],
['111', '222', '333', '444444444444']
];
console.log(tableView(arr, {margin: 4, align: 'left'}).output());
======>
111 222 333 4444
1111111 222222 333333 4444
111 222 33333333333 4444
111 222 333 444444444444