code: function pad( str, chr, n ) {
    return (chr.repeat( Math.max( n - str.length, 0 ) ) + str).substr(-n)
  }
docs: Pad a string to length `n` with `chr`
  @param {String} str
  @param {String} chr
  @param {Number} n
  @return {String}