lib/utils.js
function padStart(str, length, padChar) {
  if (str.length >= length) {
      return str;
  } else {
      return padChar.repeat(length - str.length) + str;
  }
}
function padStart(str, length, padChar) {
  if (str.length >= length) {
      return str;
  } else {
      return padChar.repeat(length - str.length) + str;
  }
}
Pads supplied string with character to fill the desired length.

@param {*} str String to pad
@param {*} length Desired length of result string
@param {*} padChar Character to use as padding