lib/cli/repl.js
function outputToStdout(prettyPrint) {
  if (prettyPrint && !_.isNumber(prettyPrint)) {
    prettyPrint = 4;
  }
  return function(err, value, callback) {
    if (err) {
      console.error(err);
    } else {
      var str = JSON.stringify(value, null, prettyPrint);
      console.log(str);
    }
    callback(err, value);
  };
}
function outputToStdout(prettyPrint) {
  if (prettyPrint && !_.isNumber(prettyPrint)) {
    prettyPrint = 4;
  }
  return function(err, value, callback) {
    if (err) {
      console.error(err);
    } else {
      var str = JSON.stringify(value, null, prettyPrint);
      console.log(str);
    }
    callback(err, value);
  };
}
function outputToStdout ( prettyPrint ) { if ( prettyPrint && ! _ . isNumber ( prettyPrint ) ) { prettyPrint = 4 ; } return function ( err , value , callback ) { if ( err ) { console . error ( err ) ; } else { var str = JSON . stringify ( value , null , prettyPrint ) ; console . log ( str ) ; } callback ( err , value ) ; } ; }
Output object to stdout in JSON representation
@private
Output object to stdout in JSON representation