Gathering detailed insights and metrics for @sotatek-anhdao/bsw-multihashes
Gathering detailed insights and metrics for @sotatek-anhdao/bsw-multihashes
Gathering detailed insights and metrics for @sotatek-anhdao/bsw-multihashes
Gathering detailed insights and metrics for @sotatek-anhdao/bsw-multihashes
multihash implementation in JavaScript
npm install @sotatek-anhdao/bsw-multihashes
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
120 Stars
195 Commits
57 Forks
19 Watchers
11 Branches
47 Contributors
Updated on Dec 19, 2024
Latest Version
0.0.1
Package Id
@sotatek-anhdao/bsw-multihashes@0.0.1
Unpacked Size
69.40 kB
Size
15.33 kB
File Count
14
NPM Version
6.14.11
Node Version
14.16.0
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
2
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
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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 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