lib/output.js
function(on, options) {
  options = options || {};
  this.on = _.isUndefined(on) ? true : !!on;
  this.useBullet = _.isUndefined(options.useBullet) ?  true : !!options.useBullet;

  // Use stderr since this is all just nice info to have and not data
  // http://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout
  this.output = options.output || process.stderr;

  // Other properties
  this.bullet = bullet;
  this.cc = cc;
  this.chalk = chalk;
  this.progressOptionsComplete = cc.bgo + " " + cc.bgc;
  this.progressOptionsIncomplete = cc.bwo + " " + cc.bwc;
  this.progressBarFormat = (this.useBullet ? bullet : "") + "[:bar] :percent | :elapseds elapsed | ~:etas left";
  this.spinnerFormat = (this.useBullet ? bullet : "") + "%s";
}
function(on, options) {
  options = options || {};
  this.on = _.isUndefined(on) ? true : !!on;
  this.useBullet = _.isUndefined(options.useBullet) ?  true : !!options.useBullet;

  // Use stderr since this is all just nice info to have and not data
  // http://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout
  this.output = options.output || process.stderr;

  // Other properties
  this.bullet = bullet;
  this.cc = cc;
  this.chalk = chalk;
  this.progressOptionsComplete = cc.bgo + " " + cc.bgc;
  this.progressOptionsIncomplete = cc.bwo + " " + cc.bwc;
  this.progressBarFormat = (this.useBullet ? bullet : "") + "[:bar] :percent | :elapseds elapsed | ~:etas left";
  this.spinnerFormat = (this.useBullet ? bullet : "") + "%s";
}
function ( on , options ) { options = options || { } ; this . on = _ . isUndefined ( on ) ? true : ! ! on ; this . useBullet = _ . isUndefined ( options . useBullet ) ? true : ! ! options . useBullet ; // Use stderr since this is all just nice info to have and not data // http://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout this . output = options . output || process . stderr ; // Other properties this . bullet = bullet ; this . cc = cc ; this . chalk = chalk ; this . progressOptionsComplete = cc . bgo + " " + cc . bgc ; this . progressOptionsIncomplete = cc . bwo + " " + cc . bwc ; this . progressBarFormat = ( this . useBullet ? bullet : "" ) + "[:bar] :percent | :elapseds elapsed | ~:etas left" ; this . spinnerFormat = ( this . useBullet ? bullet : "" ) + "%s" ; }
Create class for output, this is mostly used so that turning off and on output can be managed more easily
Create class for output this is mostly used so that turning off and on output can be managed more easily