Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
level-iterator-stream
Advanced tools
Turn a leveldown iterator into a readable stream
If you are upgrading: please see UPGRADING.md.
var iteratorStream = require('level-iterator-stream')
var leveldown = require('leveldown')
var db = leveldown(__dirname + '/db')
db.open(function (err) {
if (err) throw err
var stream = iteratorStream(db.iterator())
stream.on('data', function (kv) {
console.log('%s -> %s', kv.key, kv.value)
})
})
$ npm install level-iterator-stream
stream = iteratorStream(iterator[, options])
Create a readable stream from iterator
. options
are passed down to the require('readable-stream').Readable
constructor, with objectMode
forced to true
.
Set options.keys
or options.values
to false
to only get values / keys. Otherwise receive { key, value }
objects.
When the stream ends, the iterator
will be closed and afterwards a "close"
event emitted.
.destroy()
will force close the underlying iterator.
Copyright © 2012-present level-iterator-stream
contributors.
level-iterator-stream
is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md
file for more details.
[2.0.2] - 2018-06-28
We made a mistake releasing v2.0.1
with the engines
field in package.json
set to node 6 as minimal version. This caused problems for users of yarn. We therefore released v2.0.2
which restored node 4 and a new major directly after this.
FAQs
Turn an abstract-leveldown iterator into a readable stream
The npm package level-iterator-stream receives a total of 222,874 weekly downloads. As such, level-iterator-stream popularity was classified as popular.
We found that level-iterator-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.