{"name":"multihashes","version":"1.0.1","description":"multihash implementation","keywords":["multihash","multiformats","ipfs","hash"],"homepage":"https://github.com/multiformats/js-multihash","bugs":{"url":"https://github.com/multiformats/js-multihash/issues"},"license":"MIT","leadMaintainer":"Hugo Dias <hugomrdias@gmail.com>","scripts":{"lint":"aegir lint","test:browser":"aegir test --target browser","test:node":"aegir test --target node","build":"aegir build","test":"aegir test","docs":"aegir docs","release":"aegir release --docs","release-minor":"aegir release --type minor --docs","release-major":"aegir release --type major --docs","update-constants":"node update-constants.js"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/multiformats/js-multihash.git"},"dependencies":{"buffer":"^5.6.0","multibase":"^1.0.1","varint":"^5.0.0"},"devDependencies":{"aegir":"^24.0.0","chai":"^4.1.2","dirty-chai":"^2.0.1","ipfs-utils":"^2.3.1"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Hugo Dias","email":"hugomrdias@gmail.com"},{"name":"Juan Benet","email":"juan@benet.ai"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ","email":"victorbjelkholm@gmail.com"},{"name":"Rod Vagg","email":"rod@vagg.org"},{"name":"Pedro Teixeira","email":"i@pgte.me"},{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"Fil","email":"fil@rezo.net"},{"name":"Donald Tsang","email":"brandonknlee@gmail.com"},{"name":"Trond Arne Bråthen","email":"tabrath@gmail.com"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Volker Mische","email":"volker.mische@gmail.com"},{"name":"William Cotton","email":"williamcotton@gmail.com"},{"name":"nginnever","email":"ginneversource@gmail.com"},{"name":"Nate Foss","email":"npfoss@gmail.com"},{"name":"Alan Shaw","email":"alan@tableflip.io"}],"engines":{"node":">=10.0.0","npm":">=6.0.0"},"gitHead":"e850f682b0368a759391f7f72343019ff23a2775","_id":"multihashes@1.0.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-S27Tepg4i8atNiFaU5ZOm3+gl3KQlUanLs/jWcBxQHFttgq+5x1OgbQmf2d8axJ/48zYGBd/wT9d723USMFduw==","shasum":"a89415d68283cf6287c6e219e304e75ce7fb73fe","tarball":"http://registry-npm.ywwl.com/multihashes/download/multihashes-1.0.1.tgz","fileCount":8,"unpackedSize":66977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7MufCRA9TVsSAnZWagAADNEP/i/bnYvop9RqpMnv4LGb\nHHvSFhCMUHMe8jb6pA3qG0cMMjDxHsKgBHALc7GljQu3iHz4Ng0Jcu4SzWmS\n9fbYMl8Dhy7YEY3LGOhQiKrG+g5PQ//W55T3ifwG3v1CNZcJjjKZkNi7r8/K\nWJ4z1sEU8g0BRkp+KODue8pQW0DDSGcMJuRvDlmGEpF2+jjjrQvvyoC+4nGS\n7ptGt+xrQMPRRvOV7VvTQhsR/5KX2gzWJskj/Ka3P/OT5vGCULTshEJj40R1\nLSvk46g2nwG6kBN6RFJP9EeiCxxVxikozXT5seiqFTj04vAOurDbidg+XDQg\nCvBgXkNC6Id7c3xfDR8xdugJbBWTGbPwSlLHE+5lFSNHtzIgqPJVkZnOGjak\n9GjnLxwacjHqWPgZfSQW9m7nPEoLdQ6UxBTkgTRDSIfVurm0E/jO+/71WVQO\nxh/Wp7G1EFnKq6Qfe1/6ypwuVrK8QSvtPKcKr6mmNT6eNrnRfEYcAifGXI4U\nKw/bli708YorHJCic9+rrbhoOQ6zBDryIvAc8E+z2U71P0fh0ekPuEMeSqz/\nX9EzCTpr0X1wCz1htjtZyhpd6MWWem0oR5rRhz73nN8JCcyvQf6Cw2dhl9lr\n9RC2w/kVfYgsxowIGxEYernYyDXXBUF76+1gkRKzg/RCwlJw/6DJwdM0Ta39\n87cJ\r\n=ukCN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzOG1L1RFdepJfFdlzghMpr+x8Vi3BhU1hrOW1VaOk7QIgGv2mDrAuOCvKr69uC4dhHDud/+wZk5GtCHUEVAqtkto="}],"size":20015,"noattachment":false,"key":"/multihashes/-/multihashes-1.0.1.tgz"},"maintainers":[{"email":"mail@daviddias.me","name":"daviddias"},{"email":"dignifiedquire@gmail.com","name":"dignifiedquire"},{"email":"jacobheun@gmail.com","name":"jacobheun"},{"email":"vasco.santos@moxy.studio","name":"vascosantos"}],"_npmUser":{"name":"hugomrdias","email":"mail@hugodias.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multihashes_1.0.1_1592576927030_0.18052055357466856"},"_hasShrinkwrap":false,"readme":"# js-multihash <!-- omit in toc -->\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)\n[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](https://github.com/multiformats/multiformats)\n[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](https://webchat.freenode.net/?channels=%23ipfs)\n[![codecov](https://img.shields.io/codecov/c/github/multiformats/js-multihash.svg?style=flat-square)](https://codecov.io/gh/multiformats/js-multihash)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/multiformats/js-multihash/ci?label=ci&style=flat-square)](https://github.com/multiformats/js-multihash/actions?query=branch%3Amaster+workflow%3Aci+)\n\n> multihash implementation in node.js\n\nThis is the [multihash](//github.com/multiformats/multihash) implementation in Node.\nIt is extended by [js-multihashing](https://github.com/multiformats/js-multihashing)\nand [js-multihashing-async](https://github.com/multiformats/js-multihashing-async),\nso give those a look as well.\n\n## Lead Maintainer <!-- omit in toc -->\n\n[Hugo Dias](http://github.com/hugomrdias/)\n\n## Table of Contents <!-- omit in toc -->\n\n- [Install](#install)\n  - [Using npm](#using-npm)\n  - [Using a `<script>` tag](#using-a-script-tag)\n- [Usage](#usage)\n- [API](#api)\n- [Update Constants](#update-constants)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n### Using npm\n\n```bash\n> npm install multihashes # NOTE: The name of the module is multihashes!\n```\n\n### Using a `<script>` tag\n\nLoading this module through a script tag will make the `Multihashes` obj available in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/multihashes/dist/index.min.js\"></script>\n```\n\n## Usage\n\n```js\n> var multihash = require('multihashes')\n> var bytes = Uint8Array.from([0, 1, 2, 3...])\n\n> var encoded = multihash.encode(bytes, 'sha1')\n> console.log(encoded)\n<Uint8Array 11 14 0b ee c7 b5 ea 3f 0f db c9 5d 0d d4 7f 3c 5b c2 75 da 8a 33>\n\n> multihash.decode(encoded)\n{ code: 17,\n  name: 'sha1',\n  length: 20,\n  digest: <Uint8Array 0b ee c7 b5 ea 3f 0f db c9 5d 0d d4 7f 3c 5b c2 75 da 8a 33> }\n```\n\n## API\n\nhttps://multiformats.github.io/js-multihash/\n\n## Update Constants\n\nTo update the constants table run the command below. This will fetch the main codec list from https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv and filter only the multihash codecs and update the `constants.js` file in this repo.\n\n```sh\nnpm run update-constants\n```\n\n\n## Contribute\n\nContributions welcome. Please check out [the issues](https://github.com/multiformats/js-multihash/issues).\n\nCheck out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).\n\nSmall note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.\n\n## License\n\n[MIT](LICENSE) © Protocol Labs Inc.\n","publish_time":1592576927232,"_cnpm_publish_time":1592576927232,"dist-tags":{"latest":"4.0.3","next":"3.1.3-next.2"}}