Takes a collection and outputs a borderless table in the terminal or browser console.
var table = require('borderless-table')
table(collection, [columns], [columnLabels], [stdout])
table([
{name: 'Tokyo', country: 'Japan'},
{name: 'New York', country: 'USA'},
{name: 'São Paulo', country: 'Brazil'},
{name: 'Zürich', country: 'Switzerland'},
])
// name country
// ----------------------
// Tokyo Japan
// New York USA
// São Paulo Brazil
// Zürich Switzerland
table([
{name: 'Tokyo', country: 'Japan'},
], ['name'])
// name
// ---------
// Tokyo
table([
{name: 'Tokyo', country: 'Japan'},
], ['name'], ['City name'])
// City name
// ---------
// Tokyo