Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.