How to use the stream-browserify/index.prototype function in stream-browserify

To help you get started, we’ve selected a few stream-browserify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github biosustain / ancestry / jspm_packages / npm / readable-stream@1.1.14 / lib / _stream_readable.js View on Github external
Readable.prototype.on = function(ev, fn) {
    var res = Stream.prototype.on.call(this, ev, fn);
    if (ev === 'data' && false !== this._readableState.flowing) {
      this.resume();
    }
    if (ev === 'readable' && this.readable) {
      var state = this._readableState;
      if (!state.readableListening) {
        state.readableListening = true;
        state.emittedReadable = false;
        state.needReadable = true;
        if (!state.reading) {
          var self = this;
          process.nextTick(function() {
            debug('readable nexttick read 0');
            self.read(0);
          });
        } else if (state.length) {

stream-browserify

the stream module from node core for browsers

MIT
Latest version published 5 years ago

Package Health Score

71 / 100
Full package analysis