index.js
function pad(n, s) {
  var before = Array(n + 1).join(' ')

  return s.split(/\r\n|\r|\n/)
          .map(function(a){ return before + a })
          .join('\n')
}
function pad(n, s) {
  var before = Array(n + 1).join(' ')

  return s.split(/\r\n|\r|\n/)
          .map(function(a){ return before + a })
          .join('\n')
}
function pad ( n , s ) { var before = Array ( n + 1 ) . join ( ' ' ) return s . split ( / \r\n|\r|\n / ) . map ( function ( a ) { return before + a } ) . join ( '\n' ) }
Pads a String with some whitespace.

@summary Number, String → String
Pads a String with some whitespace .