
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
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.
[3.0.1] - 2018-10-18
readable-stream
from ^2.0
to ^2.3
to prevent npm dedupe and ensure it has #destroy()
(@vweevers)FAQs
Turn an abstract-leveldown iterator into a readable stream
The npm package level-iterator-stream receives a total of 1,058,022 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.