
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
An append-only Btree running on a Hypercore. Allows sorted iteration and more.
npm install hyperbee
const Hyperbee = require('hyperbee')
const db = new Hyperbee(feed, {
keyEncoding: 'utf-8', // can be set to undefined (binary), utf-8, ascii or and abstract-encoding
valueEncoding: 'binary' // same options as above
})
// if you own the feed
await db.put('key', 'value')
await db.del('some-key')
// if you want to insert/delete batched values
const batch = db.batch()
await batch.put('key', 'value')
await batch.del('some-key')
await batch.flush() // execute the batch
// if you want to query the feed
const node = await db.get('key') // null or { key, value }
// if you want to read a range
const rs = db.createReadStream({ gt: 'a', lt: 'd' }) // anything >a and <d
const rs = db.createReadStream({ gte: 'a', lte: 'd' }) // anything >=a and <=d
// get the last written entry
const rs = db.createHistoryStream({ reverse: true, limit: 1 })
Some of the internals are still being tweaked but overall the API and feature set is pretty stable if you want to try it out.
All of the above methods work with sparse feeds, meaning only a small subset of the full feed is downloaded to satisfy you queries.
FAQs
An append-only B-tree running on a Hypercore.
The npm package hyperbee receives a total of 0 weekly downloads. As such, hyperbee popularity was classified as not popular.
We found that hyperbee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.