src/index.js
function intendLines (string, trim, intend) {
  var intendStr = new Array(intend + 1).join(' ')

  return string
    .split('\n')
    .map(function (s) {
      return trim ? s.trim() : s
    })
    .join('\n')
    .replace(/^/gm, intendStr)
}
function intendLines (string, trim, intend) {
  var intendStr = new Array(intend + 1).join(' ')

  return string
    .split('\n')
    .map(function (s) {
      return trim ? s.trim() : s
    })
    .join('\n')
    .replace(/^/gm, intendStr)
}
function intendLines ( string , trim , intend ) { var intendStr = new Array ( intend + 1 ) . join ( ' ' ) return string . split ( '\n' ) . map ( function ( s ) { return trim ? s . trim ( ) : s } ) . join ( '\n' ) . replace ( / ^ / gm , intendStr ) }
Intend every line of a string
Intend every line of a string