contrib/commander.js
function pad(str, width) {
  var len = Math.max(0, width - str.length);
  return str + Array(len + 1).join(' ');
}
function pad(str, width) {
  var len = Math.max(0, width - str.length);
  return str + Array(len + 1).join(' ');
}
function pad ( str , width ) { var len = Math . max ( 0 , width - str . length ) ; return str + Array ( len + 1 ) . join ( ' ' ) ; }
Pad `str` to `width`.

@param {String} str
@param {Number} width
@return {String}
@api private
Pad str to width .