Sha256: 908f7894264c2a03b88c4844dd8ed9124a57d2b2d99fe1a076dee2656d956bfa

Contents?: true

Size: 766 Bytes

Versions: 19

Compression:

Stored size: 766 Bytes

Contents

/**
 * Module requirements.
 */

// this line is only needed if you refuse to use npm
require.paths.unshift(__dirname + '/../support/colors');

var Table = require('../lib/cli-table');

/**
 * Example.
 */

var table = new Table({ 
    head: ['First', 'Last', 'Email', 'Twitter']
  , chars: {
        'top': '-'
      , 'top-mid': '-'
      , 'top-left': '-'
      , 'top-right': '-'
      , 'bottom': '-'
      , 'bottom-mid': '-'
      , 'bottom-left': '-' 
      , 'bottom-right': '-'
      , 'left': '|'
      , 'left-mid': '|'
      , 'mid': '-'
      , 'mid-mid': '-'
      , 'right': '|'
      , 'right-mid': '-'
    }
  , colWidths: [14, 10, 25, 17]
});

table.push(
  ['Guillermo', 'Rauch', 'rauchg@gmail.com', 'rauchg']
);

console.log(table.toString());

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/cli-table/examples/table.js
ela-4.1.5 node_modules/cli-table/examples/table.js
ela-4.1.4 node_modules/cli-table/examples/table.js
ela-4.1.3 node_modules/cli-table/examples/table.js
ela-4.1.2 node_modules/cli-table/examples/table.js
ela-4.1.1 node_modules/cli-table/examples/table.js
ela-4.1.0 node_modules/cli-table/examples/table.js
ela-4.0.0 node_modules/cli-table/examples/table.js
ela-3.4.3 node_modules/cli-table/examples/table.js
ela-3.4.2 node_modules/cli-table/examples/table.js
ela-3.4.0 node_modules/cli-table/examples/table.js
ela-3.3.1 node_modules/cli-table/examples/table.js
ela-3.3.0 node_modules/cli-table/examples/table.js
ela-3.2.0 node_modules/cli-table/examples/table.js
ela-3.1.1 node_modules/cli-table/examples/table.js
ela-3.1.0 node_modules/cli-table/examples/table.js
ela-3.0.0 node_modules/cli-table/examples/table.js
ela-2.0.0 node_modules/cli-table/examples/table.js
ela-1.1.0 node_modules/cli-table/examples/table.js