Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
level-iterator-stream
Advanced tools
Turn an abstract-leveldown iterator into a readable stream.
If you are upgrading: please see UPGRADING.md.
const iteratorStream = require('level-iterator-stream')
const leveldown = require('leveldown')
const db = leveldown(__dirname + '/db')
db.open(function (err) {
if (err) throw err
const stream = iteratorStream(db.iterator())
stream.on('data', function (kv) {
console.log('%s -> %s', kv.key, kv.value)
})
})
With npm do:
npm install level-iterator-stream
stream = iteratorStream(iterator[, options])
Create a readable stream from iterator
. The 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 keys or values. Otherwise receive { key, value }
objects.
Upon stream end or .destroy()
the iterator
will be closed after which a close
event is emitted on the stream.
Level/iterator-stream
is an OPEN Open Source Project. This means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See the Contribution Guide for more details.
To sustain Level
and its activities, become a backer or sponsor on Open Collective. Your logo or avatar will be displayed on our 28+ GitHub repositories and npm packages. 💖
MIT © 2012-present Contributors.
[5.0.0] - 2021-04-09
If you are upgrading: please see UPGRADING.md
.
4259b6b
) (Vincent Weevers)standard
(Level/community#98) (ce274c8
) (Vincent Weevers)files
to package.json
(142cdbd
) (Vincent Weevers)FAQs
Turn an abstract-leveldown iterator into a readable stream
The npm package level-iterator-stream receives a total of 829,374 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.