
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mountable-dwtrie
Advanced tools
A Hypertrie wrapper that supports mounting of sub-Hypertries.
A MountableHypertrie can be mounted within another MountableHypertrie by using the mount command:
const store = dwebx(ram)
const trie1 = new MountableHypertrie(store)
const trie2 = new MountableHypertrie(store)
trie2.ready(() => {
trie1.mount('/a', trie2.key, ...)
})
Assuming trie2 has a value 'hello' at /b/c:
trie1.get('/a/b/c', console.log) // Will return Buffer.from('hello')
A mount can be removed by performing a del on the mountpoint :
trie1.del('/a', err => {
trie1.get('/a/b/c', console.log) // Will print `null`
})
mountable-dwtrie re-exposes the dwtrie API, with the addition of the following methods (and a different constructor):
const trie = new MountableHypertrie(dwebx, key, opts)dwebx: any object that implements the dwebx interface. For now, it's recommanded to use random-access-dwebxkey is the dwtrie keyopts can contain any dwtrie optionstrie.mount(path, key, opts, cb)path is the mountpointkey is the key for the MountableHypertrie to be mounted at pathopts can include:
{
remotePath: '/remote/path', // An optional base path within the mount.
version: 1 // An optional checkout version
}
Note: We're still adding support for many dwtrie methods. Here's what's been implemented so far:
getputdelbatchiteratorlistcreateReadStreamcreateWriteStreamcheckoutwatchcreateHistoryStreamcreateDiffStreamMIT
FAQs
A dwtrie wrapper that supports mounting of other dwtries
We found that mountable-dwtrie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.