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.
[4.0.0] - 2018-12-17
through2
devDependency from ^2.0.0
to ^3.0.0
(@vweevers)readable-stream
dependency from ^2.0.5
to ^3.0.2
(@ralphtheninja)standard
devDependency from ^11.0.0
to ^12.0.0
(@ralphtheninja)nyc
and coveralls
(#39) (@ralphtheninja)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.