{"name":"@multiformats/murmur3","version":"1.1.2","keywords":["ipfs","ipld","multiformats","hash","multihash","murmur3"],"author":{"url":"https://www.mikealrogers.com/","name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},"license":"(Apache-2.0 AND MIT)","_id":"@multiformats/murmur3@1.1.2","maintainers":[{"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":"0b73725185ebd489d2557fa9f987047677ce416a","tarball":"http://registry-npm.ywwl.com/@multiformats/murmur3/download/@multiformats/murmur3-1.1.2.tgz","fileCount":17,"integrity":"sha512-R8uoC5hJkA995mSAbx9yL/KUk+0YtOZmLyK5WLbrJWOvuF2yySDhjGaATF61a/jyo9NvyurnTkjzYW8lK2rGBg==","signatures":[{"sig":"MEUCIH28v5onoENr+bR+LpsDv6OLTgA1tnDUyA+u+f18NmEIAiEApd5JWNtjfGTKRW8z7qOSGljewzCuSQA+KZB8I2C7ylw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJib2F7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3NA//Ys42tn6EIGE+3vUfuL7pz3R/rOuexMfpMHoZpxAAJ3MirUku\r\n99DAAc/vXwSRZJrWB3lU8+YIwLDhpSVjqMPzuQRvAnPcVdUkxkR0g54zhFvt\r\nI90AMlq5ScZsW9TWT/YkWsXmRnXx2ZmaOE6lKHKAwoRd4nX3bGchSO5mRLvD\r\nGwAw6E6pjgZkXhQdtOk6Ak7eYQQWTYPQy9tkVdHRDGjt60C/PkjaBNuwh8np\r\nfgjam41ViEoemuZqN4cReWtiohFA0ba4acRR0Msw9sAS7qIOLK7UZP3UgSnJ\r\nQ30YZkwTVUgHJw8BRb7GzASUdOxKIVqscWq6WQc29hLyGaZPF/pSiuQQmLDM\r\nlwDqTBpcbJlfsjLVzWYY/k4p/Uz3HhkdrbYUcGMDQArOANU3Xvbw18duIAbX\r\niv8s09xw007kxyMcOdRt5I2OcekLWXpbBgBuU80W1ova2Y+69G5yOpGXK0/N\r\nF4KUeX4rT2ExJ9wqLZ4s3Gmw4kNp5QBjyE6ayJRfba8LhD6SQRQgnZctpw60\r\nefR7Z39FiMlBa9jGO2cYstSi0bNCdkt3crI472WyZerMS5J30Ibl6GKEoD+0\r\nlsEzclq6wH6QjqjqmYWvIk5d1wP/Wa93LP8x/kPvPvIsmEoul3mLUNSjOKbr\r\n3NUp9+bjU0h0yIhkuTm4DkEIpGdXcrc4nWA=\r\n=hcJY\r\n-----END PGP SIGNATURE-----\r\n","size":4130,"noattachment":false,"key":"/@multiformats/murmur3/-/@multiformats/murmur3-1.1.2.tgz"},"main":"./cjs/index.js","types":"types/index.d.ts","browser":"./cjs/index.js","exports":{"import":"./esm/index.js","browser":"./esm/index.js","require":"./cjs/index.js"},"gitHead":"945fe5cbae59a26dfc2be7b670376db69730da87","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":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","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":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog",["@semantic-release/npm",{"pkgRoot":"dist"}],"@semantic-release/github","@semantic-release/git"],"branches":["master"]},"scripts":{"lint":"standard","test":"npm run lint && npm run test:node && npm run test:esm","build":"npm run build:js && npm run build:types","test:ci":"npm run lint && npm run test:node && npm run test:esm && npm run test:cjs","build:js":"ipjs build --tests --main && npm run build:copy","coverage":"c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080","test:cjs":"npm run build && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser","test:esm":"npm run build && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser","test:node":"c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js","build:copy":"cp -a tsconfig.json *.js test dist/","build:types":"tsc --build && mv types dist","test:cjs:browser":"polendina --cleanup dist/cjs/browser-test/test-*.js","test:esm:browser":"polendina --cleanup dist/esm/browser-test/test-*.js"},"_npmUser":{"name":"rvagg","email":"r@va.gg"},"standard":{"ignore":["dist"]},"repository":{"url":"git+https://github.com/multiformats/js-murmur3.git","type":"git"},"_npmVersion":"8.8.0","description":"Multiformats Murmur3 implementations","directories":{"test":"test"},"_nodeVersion":"14.19.1","dependencies":{"multiformats":"^9.5.4","murmurhash3js-revisited":"^3.0.0"},"typesVersions":{"*":{"*":["types/*"],"types/*":["types/*"]}},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.10.0","chai":"^4.3.4","ipjs":"^5.2.0","mocha":"^9.1.3","standard":"^17.0.0","polendina":"^3.0.0","typescript":"^4.5.3","@ipld/dag-cbor":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/murmur3_1.1.2_1651466619039_0.05664123487347861","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":1651466619201,"_cnpm_publish_time":1651466619201,"dist-tags":{"latest":"2.2.8"}}