index.js
function(options) {
  "use strict";
  stream.Transform.call(this, options);

  options = options || {};

  this.probability = options.probability || 0;
  this.deviation = Math.abs(options.deviation || 0);

  this.whiteList = options.whiteList || [];
  this.blackList = options.blackList || [];
  this.func = options.func;
}
function(options) {
  "use strict";
  stream.Transform.call(this, options);

  options = options || {};

  this.probability = options.probability || 0;
  this.deviation = Math.abs(options.deviation || 0);

  this.whiteList = options.whiteList || [];
  this.blackList = options.blackList || [];
  this.func = options.func;
}
function ( options ) { "use strict" ; stream . Transform . call ( this , options ) ; options = options || { } ; this . probability = options . probability || 0 ; this . deviation = Math . abs ( options . deviation || 0 ) ; this . whiteList = options . whiteList || [ ] ; this . blackList = options . blackList || [ ] ; this . func = options . func ; }
GlitchedStream, a Transform stream to intentionally corrupt data
@param {Object} options
@constructor
GlitchedStream a Transform stream to intentionally corrupt data