borderless-table
Takes a collection and outputs a borderless table in the terminal or browser console.
API
var table =
Output keys that are contained in the first object
// name country // ----------------------// Tokyo Japan // New York USA // São Paulo Brazil // Zürich Switzerland
Output specific properties
// name // ---------// Tokyo
Use a custom column label
table([
{name: 'Tokyo', country: 'Japan'},
], ['name'], ['City name'])
// City name
// ---------
// Tokyo