lib/dep-validate.js
function log(results, stream) {
  stream = stream || process.stdout;

  if (results instanceof Error) {
    results = results.meta;
  }

  if (!_isFormatted(results)) {
    results = format(results);
  }

  stream.write(_join(results));
}
function log(results, stream) {
  stream = stream || process.stdout;

  if (results instanceof Error) {
    results = results.meta;
  }

  if (!_isFormatted(results)) {
    results = format(results);
  }

  stream.write(_join(results));
}
function log ( results , stream ) { stream = stream || process . stdout ; if ( results instanceof Error ) { results = results . meta ; } if ( ! _isFormatted ( results ) ) { results = format ( results ) ; } stream . write ( _join ( results ) ) ; }
Logs a results Object out to a given write stream.

The stream defaults to `process.stdout`, and results
will be formatted on-demand if needed.

@param results our Object containing validation results.
@param stream a write stream to write the log to.
Logs a results Object out to a given write stream .