LevelUP Async Iterator
adds iterator()
to levelup
that returns this._db.iterator(options)
plus an injected [Symbol.asyncIterator]
property
Usage
this package requires that the host system support async-iteration. Currently for node 8.x, this requires running your application with:
node --harmony_async_iteration example.js
import/require levelup-async-iterator
on app entry;
;;;; ; main;
output:
D:\Code\levelup-async-iterator>ts-node example
a John
c Janet
d Joseph
iterator([options])
db.iterator()
creates a iterator from the underlying store. the options
parameter is the same as what you'd use for createReadStream