Gathering detailed insights and metrics for multihashes
Gathering detailed insights and metrics for multihashes
Gathering detailed insights and metrics for multihashes
Gathering detailed insights and metrics for multihashes
npm install multihashes
98.7
Supply Chain
96.2
Quality
80.7
Maintenance
100
Vulnerability
99.6
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
119 Stars
195 Commits
57 Forks
21 Watching
11 Branches
47 Contributors
Updated on 30 Apr 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-45.4%
98,365
Compared to previous day
Last week
0.3%
803,402
Compared to previous week
Last month
6.5%
3,118,701
Compared to previous month
Last year
-10.8%
22,648,836
Compared to previous year
3
3
multihash implementation in node.js
This is the multihash implementation in Node. It is extended by js-multihashing and js-multihashing-async, so give those a look as well.
1> npm install multihashes # NOTE: The name of the module is multihashes!
<script>
tagLoading this module through a script tag will make the Multihashes
obj available in the global namespace.
1<script src="https://unpkg.com/multihashes/dist/index.min.js"></script>
1> var multihash = require('multihashes') 2> var bytes = Uint8Array.from([0, 1, 2, 3...]) 3 4> var encoded = multihash.encode(bytes, 'sha1') 5> console.log(encoded) 6<Uint8Array 11 14 0b ee c7 b5 ea 3f 0f db c9 5d 0d d4 7f 3c 5b c2 75 da 8a 33> 7 8> multihash.decode(encoded) 9{ code: 17, 10 name: 'sha1', 11 length: 20, 12 digest: <Uint8Array 0b ee c7 b5 ea 3f 0f db c9 5d 0d d4 7f 3c 5b c2 75 da 8a 33> }
https://multiformats.github.io/js-multihash/
To update the constants table run the command below. This will fetch the main codec list from https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv and filter only the multihash codecs and update the constants.js
file in this repo.
1npm run update-constants
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © Protocol Labs Inc.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
project is archived
Details
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
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 2024-11-18
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