packages/core/logger/src/Logger.js
function pad(text, length, align = 'left') {
  let pad = ' '.repeat(length - stringWidth(text));
  if (align === 'right') {
    return pad + text;
  }

  return text + pad;
}
function pad(text, length, align = 'left') {
  let pad = ' '.repeat(length - stringWidth(text));
  if (align === 'right') {
    return pad + text;
  }

  return text + pad;
}
function pad ( text , length , align = 'left' ) { let pad = ' ' . repeat ( length - stringWidth ( text ) ) ; if ( align === 'right' ) { return pad + text ; } return text + pad ; }
Pad a string with spaces on either side
Pad a string with spaces on either side