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