Gathering detailed insights and metrics for @lazy-ipfs/detect-cid-lib
Gathering detailed insights and metrics for @lazy-ipfs/detect-cid-lib
Gathering detailed insights and metrics for @lazy-ipfs/detect-cid-lib
Gathering detailed insights and metrics for @lazy-ipfs/detect-cid-lib
npm install @lazy-ipfs/detect-cid-lib
Typescript
Module System
Node Version
NPM Version
TypeScript (83.14%)
JavaScript (16.86%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
436 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Jun 01, 2022
Latest Version
1.1.1
Package Id
@lazy-ipfs/detect-cid-lib@1.1.1
Unpacked Size
30.89 kB
Size
6.92 kB
File Count
18
NPM Version
lerna/6.6.2/node@v20.8.0+x64 (win32)
Node Version
20.8.0
Published on
Sep 30, 2023
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
4
detect input cid is js-multiformats or js-cid
1yarn add @lazy-ipfs/detect-cid-lib 2yarn-tool add @lazy-ipfs/detect-cid-lib 3yt add @lazy-ipfs/detect-cid-lib
1import typeofCID, { EnumTypeofCID, isJsCID, isMultiformatsCID } from '@lazy-ipfs/detect-cid-lib';
2import JsCID from 'cids';
3import { CID as MultiformatsCID } from 'multiformats';
4
5describe(`describe`, () =>
6{
7
8 test(EnumTypeofCID.js_cid, () =>
9 {
10 const cid = new JsCID('bafybeidw5mmxmimpuzo7wiwmhwvea2zalug5djderubacu2aqnneva6zwy');
11
12 let actual = typeofCID(cid);
13 let expected = EnumTypeofCID.js_cid;
14
15 console.dir(cid)
16
17 expect(cid.multihash).toMatchSnapshot();
18 expect(cid).toMatchSnapshot();
19 expect(actual).toStrictEqual(expected);
20 expect(isJsCID(cid)).toBeTruthy();
21
22 });
23
24 test(EnumTypeofCID.multiformats_cid, () =>
25 {
26 const cid = MultiformatsCID.parse('bafybeidw5mmxmimpuzo7wiwmhwvea2zalug5djderubacu2aqnneva6zwy');
27
28 let actual = typeofCID(cid);
29 let expected = EnumTypeofCID.multiformats_cid;
30
31 console.dir(cid)
32
33 expect(cid.multihash).toMatchSnapshot();
34 expect(cid).toMatchSnapshot();
35 expect(actual).toStrictEqual(expected);
36 expect(isMultiformatsCID(cid)).toBeTruthy();
37
38 });
39
40})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
74 existing vulnerabilities detected
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