0.3.0 • Published 9 years ago

table-view v0.3.0

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

table-view

build status NPM version

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