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
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 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.