
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
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
Create a readable stream from iterator
. options
are passed down to the
require('readable-stream').Readable
constructor, with objectMode
forced
to true
.
If options.decoder
is passed, each key/value pair will be transformed by it.
Otherwise, an object with { key, value }
will be emitted.
When the stream ends, the iterator
will be closed and afterwards a
"close"
event emitted.
.destroy()
will force close the underlying iterator.
Copyright (c) 2012-2015 LevelUP contributors.
LevelUP 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.
[1.3.1] - 2015-08-17
.repository
path in package.json
(@timoxley)level-codec
from npm (@juliangruber)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.