
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@ipld/unixfsv2
Advanced tools
This library is a full implementation of unixfs-v2 for JavaScript.
Async generator that yields blocks for every file and and directory in the path.
Last block is the root block.
Runs recursively through directories. Accepts any valid file or directory string path.
const { encoder } = require('unixfsv2')
const storage = require('any-key-value-store')
const putBlock = async b => storage.put((await b.cid()).toString(), b.encode())
const storeDirectory = async path => {
for await (const { block, root } of encoder(__dirname)) {
await storage.putBlock(block || root.block())
if (root) return root.block().cid()
}
}
Returns a new Reader instance for the root block.
const { reader } = require('unixfsv2')
const storage = require('any-key-value-store')
const Block = require('@ipld/block')
const getBlock = async cid => Block.create(await storage.get(cid.toString()), cid)
/* rootBlock would be the same as the last block in
/ encode example.
*/
const r = reader(rootBlock, getBlock)
FAQs
Filesystem in a merkle tree.
We found that @ipld/unixfsv2 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.