src/lib/logger.js
function pad(str) {
  if (str.length < max) {
    return str + ' '.repeat(max - str.length);
  }
  return str;
}
function pad(str) {
  if (str.length < max) {
    return str + ' '.repeat(max - str.length);
  }
  return str;
}
function pad ( str ) { if ( str . length < max ) { return str + ' ' . repeat ( max - str . length ) ; } return str ; }
Apply whitespaces based on the length
@param {*} str the log message
@return {String}
Apply whitespaces based on the length