Installations
npm install @multiformats/murmur3
Score
99.2
Supply Chain
88.9
Quality
83.9
Maintenance
100
Vulnerability
87.3
License
Developer
multiformats
Developer Guide
Module System
ESM
Min. Node Version
>=16.0.0
Typescript Support
Yes
Node Version
20.10.0
NPM Version
9.9.2
Statistics
3 Stars
90 Commits
2 Forks
15 Watching
4 Branches
34 Contributors
Updated on 02 Jun 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
5,332,252
Last day
-4.7%
9,686
Compared to previous day
Last week
14.1%
48,083
Compared to previous week
Last month
16.3%
187,697
Compared to previous month
Last year
3.8%
2,078,577
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
2
@multiformats/murmur3
Multiformats Murmur3 implementations
Table of contents
Install
1$ npm i @multiformats/murmur3
MultihashHashers
s are exported from this library, they produce MultihashDigest
s. Details about these can be found in the multiformats multihash interface definitions.
1import * as Block from 'multiformats/block' 2import * as codec from '@ipld/dag-cbor' 3import { murmur3128 as hasher } from '@multiformats/murmur3' 4 5async function run () { 6 const value = { hello: 'world' } 7 const block = await Block.encode({ value, hasher, codec }) 8 console.log(block.cid) 9 // -> CID(bafyseebn7ksk6khsn4an2lzmae6wm4qk) 10} 11 12run().catch(console.error)
Usage
The @multiformats/murmur3
package exports murmur332
and murmur3128
MultihashHasher
s. The Multicodecs table defines these multihashes.
The murmur3-32
, multicodec code 0x23
, may be imported as:
1import { murmur332 } from '@multiformats/murmur3'
The murmur3-128
, multicodec code 0x22
, may be imported as:
1import { murmur3128 } from '@multiformats/murmur3'
The murmur3-x64-64
(which is first 64-bits of murmur3-128
used in UnixFS directory sharding), multicodec code 0x22
, may be imported as:
1import { murmur364 } from '@multiformats/murmur3'
License
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Contribute
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
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
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
Found 10/21 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: topLevel 'contents' permission set to 'write': .github/workflows/js-test-and-release.yml:11
- Warn: topLevel 'packages' permission set to 'write': .github/workflows/js-test-and-release.yml:13
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 21 are checked with a SAST tool
Score
4
/10
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