{"name":"@multiformats/murmur3","version":"0.0.9","keywords":[],"author":{"url":"https://www.mikealrogers.com/","name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"license":"(Apache-2.0 AND MIT)","_id":"@multiformats/murmur3@0.0.9","maintainers":[{"name":"daviddias","email":"mail@daviddias.me"},{"name":"hugomrdias","email":"mail@hugodias.me"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"vmx","email":"volker.mische@gmail.com"}],"dist":{"shasum":"f291bd1a18944ee52b953482c72fb8536b005aa7","tarball":"http://registry-npm.ywwl.com/@multiformats/murmur3/download/@multiformats/murmur3-0.0.9.tgz","fileCount":5,"integrity":"sha512-VrcMIcDYvKtufoVwoLTmbHpk5/G0Rfz2k9l/hMDYUGvxJg6KPQGgCXrru8j+0KSLZo/NtlBGNDZh+XjUtIm4eg==","signatures":[{"sig":"MEQCIAGxVTmtD56v8+D2TQES3NfuKi4uSF8mohQPVK2/TLaOAiByuQUfaNFP2iyl4F15NQTmJv3zomxBxxTjumGt2iSgdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3014,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPefuCRA9TVsSAnZWagAA1fgQAI82LlC42CQDwoKSs5JD\nBvnsNSsv/tEJDecg2hrbNQUD274/81LACDATXZc4h4xXNO6GX1xYrY/8I8dN\n/bOh4hzTOc3/scrWCWXBENwQEM8GWbWhAE0VDdhiUMUC2QpnH+MlatN3eA4Q\nqvaM7Vp7eKblPvRuX3lj+7L8bUNrWqg3DJcaHeL22F2imXHi43Xxgu3dFrnY\ntc9BmiNF3aM/WBxvvfYrCCL/UVHlb+/sFf1Gqjxv2FslVWPvMPMs0kb51WGz\nkDTI0bKXq+j3iQXNkewsUly/uqPB789dWGGTVHyBimHSdVufvFWcSQNFC1tW\niNYqe0emI1NVjkHOMEapRCpc0O+TRG+QDa6s2hcj+3sLS46pYOOwa8yujogY\nNyj236LOwhX4XSfD9mRaWYtrNHzkcP/loXC8Xq/OUTYMt5y2leidQgCITjok\nvsKAnAxt0VdmDKrv8IRJku9XrLvqnG1Uq7FDMe7CP7TInaIib8oHabLroNlz\ndZG7K4iubsmW1tpNvA0OhfB/9M+jZ5mak29DyTYyN9Qm3EgD4Mu3thJh5XZ7\nqfDk9gooT1CLW4ZRJwRxWUxLUPGAQj5GEcxcXU0Mya4XvNMvzgBAMkVLEaE5\nid4K6tOCvM7f3rSL/8crzOlu1NKeiRdOHfZkr118nXbu94DhsuferC2BhzYt\n5bGU\r\n=o2hH\r\n-----END PGP SIGNATURE-----\r\n","size":1291,"noattachment":false,"key":"/@multiformats/murmur3/-/@multiformats/murmur3-0.0.9.tgz"},"browser":{"import":"./cjs/index.js"},"exports":{"import":"./esm/index.js","browser":"./esm/index.js","require":"./cjs/index.js"},"scripts":{"lint":"standard","test":"npm run lint && npm run test:node && npm run test:cjs && npm run test:browser","build":"npm_config_yes=true npx ipjs@latest build --tests","publish":"npm_config_yes=true npx ipjs@latest publish","coverage":"c8 --reporter=html mocha test/test-*.js && npx st -d coverage -p 8080","test:cjs":"npm run build && mocha dist/cjs/node-test/test-*.js","test:node":"hundreds mocha test/test-*.js","test:browser":"polendina --cleanup dist/cjs/browser-test/test-*.js"},"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_npmVersion":"6.14.6","description":"Multiformats hash functions for MurmurHash3","directories":{},"_nodeVersion":"12.18.3","dependencies":{"murmurhash3js-revisited":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.3.0","mocha":"^8.1.1","globby":"^11.0.1","hundreds":"0.0.8","standard":"^14.3.4","polendina":"^1.1.0","multiformats":"^3.0.3"},"_npmOperationalInternal":{"tmp":"tmp/murmur3_0.0.9_1597892590451_0.16971084834038064","host":"s3://npm-registry-packages"},"readme":"# @multiformats/murmur3\n\n[![multiformats.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://multiformats.io)\n[![codecov](https://img.shields.io/codecov/c/github/multiformats/js-murmur3.svg?style=flat-square)](https://codecov.io/gh/multiformats/js-murmur3)\n[![CI](https://img.shields.io/github/actions/workflow/status/multiformats/js-murmur3/js-test-and-release.yml?branch=master\\&style=flat-square)](https://github.com/multiformats/js-murmur3/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)\n\n> Multiformats Murmur3 implementations\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\n`MultihashHashers`s are exported from this library, they produce `MultihashDigest`s. Details about these can be found in the [multiformats multihash interface definitions](https://github.com/multiformats/js-multiformats/blob/master/src/hashes/interface.ts).\n\n```js\nimport * as Block from 'multiformats/block'\nimport * as codec from '@ipld/dag-cbor'\nimport { murmur3128 as hasher } from '@multiformats/murmur3'\n\nasync function run () {\n  const value = { hello: 'world' }\n  const block = await Block.encode({ value, hasher, codec })\n  console.log(block.cid)\n  // -> CID(bafyseebn7ksk6khsn4an2lzmae6wm4qk)\n}\n\nrun().catch(console.error)\n```\n\n## Usage\n\nThe `@multiformats/murmur3` package exports `murmur332` and `murmur3128` `MultihashHasher`s. The Multicodecs [table](https://github.com/multiformats/multicodec/blob/master/table.csv) defines these multihashes.\n\nThe `murmur3-32`, multicodec code `0x23`, may be imported as:\n\n```js\nimport { murmur332 } from '@multiformats/murmur3'\n```\n\nThe `murmur3-128`, multicodec code `0x22`, may be imported as:\n\n```js\nimport { murmur3128 } from '@multiformats/murmur3'\n```\n\nThe `murmur3-x64-64` (which is first 64-bits of `murmur3-128` used in UnixFS directory sharding), multicodec code `0x22`, may be imported as:\n\n```js\nimport { murmur364 } from '@multiformats/murmur3'\n```\n\n# Install\n\n```console\n$ npm i @multiformats/murmur3\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make its exports available as `MultiformatsMurmur3` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@multiformats/murmur3/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://multiformats.github.io/js-murmur3>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/multiformats/js-murmur3/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/multiformats/js-murmur3/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless 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.\n","publish_time":1597892590575,"_cnpm_publish_time":1597892590575,"dist-tags":{"latest":"2.2.8"}}