
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
abstract-stream-leveldown
Advanced tools
This library provides a smaller API footprint for using AbstractLevelDOWN to create a LevelDOWN backend, by implementing a Readable and Writable stream instead of all of the abstract LevelDOWN methods. It's a good fit for turning something that already has readable and writable stream interfaces into a LevelDOWN backend.
in es6
import {AbstractStreamLevelDOWN} from "abstract-stream-leveldown"
class MyLevelDOWN extends AbstractStreamLevelDOWN {
_createReadStream([options]) { /* return a Readable */ }
_createWriteStream([options]) { /* return a Writable */ }
}
in es5
var inherits = require('inherits')
var assign = require('object-assign')
var AbstractStreamLevelDOWN = require('abstract-stream-leveldown').AbstractStreamLevelDOWN
function MyLevelDOWN (location) {
AbstractLevelDOWN.call(this, location)
}
inherits(MyLevelDOWN, AbstractStreamLevelDOWN)
assign(AbstractStreamLevelDOWN, {
_createReadStream([options]) { /* return a Readable */ }
_createWriteStream([options]) { /* return a Writable */ }
}
Returns a Readable stream. options
should support the same properties as those to be passed to createReadStream.
Returns a Writable stream. options
should support the same properties as those to be passed to put. This stream accepts {key, value}
objects, and will perform a del
if the value is null or undefined, and a put
otherwise.
FAQs
A stream-based abstract prototype matching the LevelDOWN API
The npm package abstract-stream-leveldown receives a total of 3 weekly downloads. As such, abstract-stream-leveldown popularity was classified as not popular.
We found that abstract-stream-leveldown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.