index.js
function use(options) {
  options = _.defaults(options || {}, {
    stdout: true,
    stderr: true,
    print: false
  });

  if (options.stdout)
    wrapWrite('stdout', options.print);

  if (options.stderr)
    wrapWrite('stderr', options.print);
}
function use(options) {
  options = _.defaults(options || {}, {
    stdout: true,
    stderr: true,
    print: false
  });

  if (options.stdout)
    wrapWrite('stdout', options.print);

  if (options.stderr)
    wrapWrite('stderr', options.print);
}
function use ( options ) { options = _ . defaults ( options || { } , { stdout : true , stderr : true , print : false } ) ; if ( options . stdout ) wrapWrite ( 'stdout' , options . print ) ; if ( options . stderr ) wrapWrite ( 'stderr' , options . print ) ; }
Start mocking std output.

@param {object} [options] Options
@param {boolean} [options.stdout=true] Mock stdout
@param {boolean} [options.stderr=true] Mock stderr
@param {boolean} [options.print=false] Also print to std
Start mocking std output .