index.js
function hasPipeDataListeners (stream) {
  var listeners = stream.listeners('data')

  for (var i = 0; i < listeners.length; i++) {
    if (listeners[i].name === 'ondata') {
      return true
    }
  }

  return false
}
function hasPipeDataListeners (stream) {
  var listeners = stream.listeners('data')

  for (var i = 0; i < listeners.length; i++) {
    if (listeners[i].name === 'ondata') {
      return true
    }
  }

  return false
}
function hasPipeDataListeners ( stream ) { var listeners = stream . listeners ( 'data' ) for ( var i = 0 ; i < listeners . length ; i ++ ) { if ( listeners [ i ] . name === 'ondata' ) { return true } } return false }
Determine if there are Node.js pipe-like data listeners.
@private
Determine if there are Node . js pipe - like data listeners .