Skip to content

Instantly share code, notes, and snippets.

@tkambler
Last active April 1, 2019 18:02

Revisions

  1. tkambler revised this gist Nov 11, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/usr/local/bin/node

    var Table = require('cli-table');

    var table = new Table({
  2. tkambler created this gist Nov 11, 2014.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    var Table = require('cli-table');

    var table = new Table({
    chars: { 'top': '' , 'top-mid': '' , 'top-left': '' , 'top-right': ''
    , 'bottom': '' , 'bottom-mid': '' , 'bottom-left': '' , 'bottom-right': ''
    , 'left': '' , 'left-mid': '' , 'mid': '' , 'mid-mid': ''
    , 'right': '' , 'right-mid': '' , 'middle': ' ' },
    style: { 'padding-left': 0, 'padding-right': 0 }
    });

    table.push(
    { 'Some key': 'Some value' }
    , { 'Another key': 'Another value' }
    );

    console.log(table.toString());