How to use the easy-table.padLeft function in easy-table

To help you get started, we’ve selected a few easy-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Jimbly / node-mtrace / lib / mtrace.js View on Github external
function printBytes(obj, len) {
    return Table.padLeft(friendlyBytes(obj), len);
  }
  function printModule(obj) {
github osmlab / osm-community-index / stats.js View on Github external
t.cell('Size', stats.size, function sizePrinter(val, width) {
      let displaySize = bytes(stats.size, { unitSeparator: ' ' });
      return width ? Table.padLeft(displaySize, width) : color(displaySize);
    });
    t.cell('File', color(path.basename(file)));
github bahmutov / next-update / src / print-modules-table.js View on Github external
function markProbability (val, width) {
  if (width === null) {
    return val
  }
  return Table.padLeft(val, width)
}