How to use level-iterator-stream - 3 common examples

To help you get started, we’ve selected a few level-iterator-stream 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 WorldBrain / Memex / src / search / search-index-old / level-js-to-leveldown.js View on Github external
createReadStream = opts => {
        opts = { keys: true, values: true, ...opts }
        return new IteratorStream(this.iterator(opts), opts)
    }
}
github dominictarr / level-sublevel / read-stream.js View on Github external
function ReadStream (options, makeData) {
  if (!(this instanceof ReadStream)) {
    return new ReadStream(options, makeData);
  }

  IteratorStream.call(this, null, options);

  this._waiting = false;
  this._makeData = makeData;
}
github dominictarr / level-sublevel / read-stream.js View on Github external
ReadStream.prototype._read = function () {
  if (!this._iterator) {
    this._waiting = true;
    return;
  }
  IteratorStream.prototype._read.call(this);
}

level-iterator-stream

Turn an abstract-leveldown iterator into a readable stream

MIT
Latest version published 3 years ago

Package Health Score

56 / 100
Full package analysis