index.js
function registerDriver(Driver, name, options) {
  if (this.drivers[name]) {
    log.error(new Error('Driver "' + name + '" is already registered.'));
    return;
  }
  if (!Driver || !Driver.prototype || typeof Driver.prototype.send !== 'function') {
    log.error(new Error('Driver "' + name + '" should implement "send" method.'));
    return;
  }
  this.drivers[name] = new Driver(options || {});
}
function registerDriver(Driver, name, options) {
  if (this.drivers[name]) {
    log.error(new Error('Driver "' + name + '" is already registered.'));
    return;
  }
  if (!Driver || !Driver.prototype || typeof Driver.prototype.send !== 'function') {
    log.error(new Error('Driver "' + name + '" should implement "send" method.'));
    return;
  }
  this.drivers[name] = new Driver(options || {});
}
function registerDriver ( Driver , name , options ) { if ( this . drivers [ name ] ) { log . error ( new Error ( 'Driver "' + name + '" is already registered.' ) ) ; return ; } if ( ! Driver || ! Driver . prototype || typeof Driver . prototype . send !== 'function' ) { log . error ( new Error ( 'Driver "' + name + '" should implement "send" method.' ) ) ; return ; } this . drivers [ name ] = new Driver ( options || { } ) ; }
Registers output driver
@param {Function} Driver Damson driver constructor
@param {string} name Damson driver name
@param {object} options Damson driver options
Registers output driver