{"name":"@multiformats/murmur3","version":"0.0.0","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.0","maintainers":[{"name":"hugomrdias","email":"mail@hugodias.me"},{"name":"mikeal","email":"mikeal.rogers@gmail.com"},{"name":"vmx","email":"volker.mische@gmail.com"},{"name":"daviddias","email":"mail@daviddias.me"}],"dist":{"shasum":"a5d26ad75a8ef9dcb432e879c7b30002c473f65a","tarball":"http://registry-npm.ywwl.com/@multiformats/murmur3/download/@multiformats/murmur3-0.0.0.tgz","fileCount":4,"integrity":"sha512-hFqoAJmEiPF7mYllBCd/1Qx3qxBjSPBL9FPLgfzm9cWLlHAUd6AhQ1zjlFAQPWsg0LIFzOCsOj9fy+FlP+bfzQ==","signatures":[{"sig":"MEUCIQDYJSsnTR9eHOlwaQCuwgMeijXHbNJqiX0dfoYuJJa42AIgcpkIcCmJtRshKE9tNWVmxvSXUzAJ/nqQuOyPTnqUG8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4q5OCRA9TVsSAnZWagAAZGwP/j4bmuuyHE9vZXJ/njCR\n10MKJU7hWLVGVPIP0rN0KMPDXZvoOCubP8CoxN2Ogk0a1jEaQDzWuaDODxn8\nEWvn9blF7FJ/OA/BZ7gsypWRcs28BBSJkrtiTzC8gJkZ+pLgP7E6XRYxYg41\n6Md4jHtLgt6rqHlyiDVtGnjj9L5xAoezB5VH3veEPIQ0mUqL/XSxXzGphavo\nSHlb2G+fCoevwY1A9j4We1jW8xBTTiChUzRF/RuQMiWk7pKdKMPuW4ZWkzMT\no7x8cc0KHfsfrLcdGbu6CbbiZ7kNrYuRbLZjJPjj7Yts0ufA1JATaWfKGjNL\noTpDY35jDpLnvrmZwZURBoOw8EFOH/sUoVyjZ4tcZGF86L7pa2yu8dqxR8zx\ndOko0VhIMyrMJDX8WytnjfpvABh4GkqQ2Jjf1INkSvL7hcDMH2s+MEt4EMF9\nqr1q4hTDaWcxXNszLLQEmVI4J9VDYyYvJGhSaS7JcZI+Iq/cFKTGBo0DXlB2\no0I4C0M/mbugrqHFEzp2rwKrzv4IbBBNncReMscpVgqHmdwNPxnuuRUr1z1/\n2f8TQ8MUFa/xl5onLzE/M6g5E3hfGJGLI2QHEl6FFlyAun4I7FKYaHm/lqsS\nioj1/05aDbmfpcz+PEOGJCwXfe9jF+ZEh1Nhv8VSoFCU6+m2GSu/Vj8vgogr\n1ULa\r\n=jPqY\r\n-----END PGP SIGNATURE-----\r\n","size":1434,"noattachment":false,"key":"/@multiformats/murmur3/-/@multiformats/murmur3-0.0.0.tgz"},"main":"index.js","type":"module","gitHead":"4759c4e95bf25d1927183e32023fec6e50429bdc","scripts":{"test":"npm run pre:test && npm run test:node && npm run test:browser","coverage":"c8 --reporter=html mocha test.js && npx st -d coverage -p 8080","pre:test":"standard","test:node":"hundreds mocha test.js","test:browser":"polendina --cleanup test.js"},"_npmUser":{"name":"mikeal","email":"mikeal.rogers@gmail.com"},"_npmVersion":"6.14.4","description":"","directories":{},"_nodeVersion":"12.18.0","dependencies":{"c8":"^7.2.0","murmurhash3js-revisited":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.0.1","hundreds":"0.0.4","standard":"^14.3.4","polendina":"^1.0.0","multiformats":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/murmur3_0.0.0_1591914061585_0.8134507758376832","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":1591914061742,"_cnpm_publish_time":1591914061742,"dist-tags":{"latest":"2.2.8"}}