Gathering detailed insights and metrics for @ipld/unixfsv2
Gathering detailed insights and metrics for @ipld/unixfsv2
Gathering detailed insights and metrics for @ipld/unixfsv2
Gathering detailed insights and metrics for @ipld/unixfsv2
npm install @ipld/unixfsv2
Typescript
Module System
Node Version
NPM Version
JavaScript (99.84%)
HTML (0.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
4 Stars
69 Commits
1 Forks
19 Watchers
4 Branches
25 Contributors
Updated on Jan 28, 2023
Latest Version
0.0.2
Package Id
@ipld/unixfsv2@0.0.2
Unpacked Size
31.86 kB
Size
11.79 kB
File Count
27
NPM Version
6.14.6
Node Version
12.18.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
3
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.
1const { encoder } = require('unixfsv2') 2const storage = require('any-key-value-store') 3 4const putBlock = async b => storage.put((await b.cid()).toString(), b.encode()) 5 6const storeDirectory = async path => { 7 for await (const { block, root } of encoder(__dirname)) { 8 await storage.putBlock(block || root.block()) 9 if (root) return root.block().cid() 10 } 11}
Returns a new Reader instance for the root block.
1const { reader } = require('unixfsv2') 2const storage = require('any-key-value-store') 3const Block = require('@ipld/block') 4 5const getBlock = async cid => Block.create(await storage.get(cid.toString()), cid) 6 7/* rootBlock would be the same as the last block in 8/ encode example. 9*/ 10const r = reader(rootBlock, getBlock)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
project is archived
Details
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More