MCPcopy Create free account
hub / github.com/PicoCreator/smol-dev-js / table

Method table

src/cli/OutputHandler.js:446–452  ·  view source on GitHub ↗

* Table output format * * This is enabled only when table mode is enabled * * @param {Array } table collection of objects, to output * @param {Array } keys collumn keys to output * @param {Array } width collumn widths to output, if null this is auto detected

(table, keys = null, width = null)

Source from the content-addressed store, hash-verified

444 * @param {Array<Int>} width collumn widths to output, if null this is auto detected
445 */
446 table(table, keys = null, width = null) {
447 // Does nothing if not enabled
448 if(!this.tableOutput) {
449 return;
450 }
451 return this.standardTable(table,keys,width);
452 }
453
454 /**
455 * Table header output format

Callers

nothing calls this directly

Calls 1

standardTableMethod · 0.95

Tested by

no test coverage detected