This package has been deprecated

Author message:

Deprecated: no longer mantained. Use cli-table2 or table instead.

tableprinter

1.0.0 • Public • Published

tablePrinter

Turns this:

var data = [
    {
        id: 1,
        'Column 1': 'foo',
        'Column 2': 'bar'
    },
    {
        id: 2,
        'Column 1': 'bar',
        'Column 2': 'foo'
    }
];

Into this:

| id | Column 1 | Column 2 |
| == | ======== | ======== |
| 1  | foo      | bar      |
| 2  | bar      | foo      |

Usage

npm install --save tableprinter
const printTable = require('tableprinter');
printTable(data);

Package Sidebar

Install

npm i tableprinter

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • mellamopablo