{"name":"@multiformats/murmur3","version":"2.1.0","keywords":["hash","ipfs","ipld","multiformats","multihash","murmur3"],"author":{"url":"https://www.mikealrogers.com/","name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"license":"Apache-2.0 OR MIT","_id":"@multiformats/murmur3@2.1.0","maintainers":[{"name":"npm-service-account-multiformats","email":"npm-service-account+multiformats@protocol.ai"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"lidel","email":"lidel@lidel.org"},{"name":"rvagg","email":"r@va.gg"},{"name":"daviddias","email":"mail@daviddias.me"},{"name":"vmx","email":"volker.mische@gmail.com"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"hugomrdias","email":"hugomrdias@gmail.com"}],"homepage":"https://github.com/multiformats/js-murmur3#readme","bugs":{"url":"https://github.com/multiformats/js-murmur3/issues"},"dist":{"shasum":"6c94f8db48654bdc92a8af29bba16dfd079b7d85","tarball":"http://registry-npm.ywwl.com/@multiformats/murmur3/download/@multiformats/murmur3-2.1.0.tgz","fileCount":7,"integrity":"sha512-XmvvyhvJRQg0BoLOX1SJCcAFQj05YbgO4BUMuCrUgZRaG7lswjl3PV7NSrbm4J05c7mFyUvaQD7seDyCpU5Iaw==","signatures":[{"sig":"MEUCIQC11bBN7b14iK2yl/+6VdaZQ3sWWkw2SIckKeAriF83igIgGP80WcfdsmPHmnBT+RumXXPzGnDg2np8kwfipDqOb0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbAMyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtlRAAhIqsvCGAjRS3zf0s6dnvXD/Gzllu/7YPNm7xQlIpQYwvXySg\r\nEH/85dgupy68O1Ppy0JUfCrgiWqo6zFsEmTXVu4o17nQiAOmijBzsoDSDssn\r\npEOi4Ut2TgCvVlo8ScC6OLFiqy+x+yLpLXCukigL0TIpO4hq6b5WQXzeN1Kf\r\nD7bCnvrBVVrhsUWxSxpPwgFmdTs5RlcDnl6r5WSbYC06CCPCxu6GNZSn2F7k\r\nJjnwEgBi3dPqwVJ8CzD2o6Jca4CFFDXQ7nrPoJhvfj+0HMrz11/6tk6vDRhx\r\nOTGTrcNgG0qIq1NCJXhju7S9TUNtKiVTBVExU/TM2SXpsmAZIHo1btOMwhVG\r\nL/T9Uk33c39e4TFaHVUve1W8V0FV+GsAPpCECjloluH/G+ijbbKpEAg5C53F\r\nS6jtNRxaqjlggt56KiHPJJ2LIAHbB40YBaMr4+pOS9U2jyZJZgRJi12VXlxt\r\n7+zW57pR6uJ1Egn0siq2dft9oJzJLDUXaWsNym5j2U2NIU35zhTm5CoWanO7\r\nHPZFaHKkWZfwRuYd7DhiJy0qEcDGj+KDlZBXmWegKTCK5SBQNjF/8WIYnPXN\r\nVu4SMbeiiK5MnpV+MWWiDew4mB1xhotN59eskJpb70gp/wIOUDFd+gRP96QJ\r\nhU6kDc/k82xqUe9ywfKPJbiDUuTrM3rUqsY=\r\n=ptc9\r\n-----END PGP SIGNATURE-----\r\n","size":9272,"noattachment":false,"key":"/@multiformats/murmur3/-/@multiformats/murmur3-2.1.0.tgz"},"type":"module","types":"./dist/src/index.d.ts","engines":{"npm":">=7.0.0","node":">=16.0.0"},"exports":{".":{"types":"./dist/src/index.d.ts","import":"./src/index.js"}},"gitHead":"0dad1647b682525202db83d15900ebcf06daa182","release":{"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"release":"major","breaking":true},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"type":"deps","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Documentation"},{"type":"deps","section":"Dependencies"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"],"branches":["master"]},"scripts":{"lint":"aegir lint","test":"aegir test","build":"aegir build","clean":"aegir clean","release":"aegir release","test:ts":"npm run test --prefix test/ts-use","dep-check":"aegir dep-check","test:node":"aegir test -t node --cov","test:chrome":"aegir test -t browser --cov","test:firefox":"aegir test -t browser -- --browser firefox","test:electron-main":"aegir test -t electron-main","test:chrome-webworker":"aegir test -t webworker","test:firefox-webworker":"aegir test -t webworker -- --browser firefox"},"_npmUser":{"name":"npm-service-account-multiformats","email":"npm-service-account+multiformats@protocol.ai"},"repository":{"url":"git+https://github.com/multiformats/js-murmur3.git","type":"git"},"_npmVersion":"8.19.3","description":"Multiformats Murmur3 implementations","directories":{},"_nodeVersion":"18.12.0","dependencies":{"multiformats":"^10.0.2","murmurhash3js-revisited":"^3.0.0"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"typesVersions":{"*":{"*":["*","dist/*","dist/src/*","dist/src/*/index"],"src/*":["*","dist/*","dist/src/*","dist/src/*/index"]}},"_hasShrinkwrap":false,"devDependencies":{"aegir":"^37.5.6","@ipld/dag-cbor":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/murmur3_2.1.0_1668023090528_0.8199508643227558","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":1668023090705,"_cnpm_publish_time":1668023090705,"dist-tags":{"latest":"2.2.8"}}