{"name":"multihashes","version":"4.0.2","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":{"prepare":"aegir build --no-bundle","lint":"aegir lint","test:browser":"aegir test --target browser","test:node":"aegir test --target node","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","types":"dist/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/multiformats/js-multihash.git"},"dependencies":{"multibase":"^4.0.1","uint8arrays":"^2.1.3","varint":"^5.0.2"},"devDependencies":{"aegir":"^31.0.0","ipfs-utils":"^6.0.1"},"eslintConfig":{"extends":"ipfs"},"aegir":{"build":{"bundlesizeMax":"5.8kB"}},"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":"kumavis","email":"aaron@kumavis.me"},{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"Irakli Gozalishvili","email":"contact@gozala.io"},{"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":"Fil","email":"fil@rezo.net"},{"name":"Nate Foss","email":"npfoss@gmail.com"},{"name":"Alan Shaw","email":"alan@tableflip.io"}],"engines":{"node":">=12.0.0","npm":">=6.0.0"},"gitHead":"15cc81ebf0c92085f33c42e0598ea72ae53f742f","_id":"multihashes@4.0.2","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-xpx++1iZr4ZQHjN1mcrXS6904R36LWLxX/CBifczjtmrtCXEX623DMWOF1eiNSg+pFpiZDFVBgou/4v6ayCHSQ==","shasum":"d76aeac3a302a1bed9fe1ec964fb7a22fa662283","tarball":"http://registry-npm.ywwl.com/multihashes/download/multihashes-4.0.2.tgz","fileCount":13,"unpackedSize":71482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP3LUCRA9TVsSAnZWagAAcDwP/1d7TzfM+y3SfqFk4o1T\n02TimFQYVT+rjeY5g4eHwXQnBhRjl43Zdk9VFfVuil6m4tdITb7a+tInVZd2\nHLTn+bRlddFNS6GaSa1cOloWIlvsfFsR/bM+cEyZb/iVeHO8XVcFJpr7feH/\nJY2xhq1UXhn3+Dc5rlKX9G1h0UTgEonuFMO3O9cOfa9vPBAfbRdgR2LMQdK4\nM6PNAsXI6SFyt4Wyv+OBN8tn0bTfyS98TGizeVsiq68wUQvPt9XOLccxZwUp\noRGSVZ9okCdq0BzSq/kjZeXMKAonIWHge4Q9KFUmQ5TXG6yjd3KXFJG8xBg+\nGB/15NUut0G8dMfcB+Bq8MPjH6sQOT52CbdZCesHi7J4zzCaM6NZtDgYfHxy\n5SVE+nhdHM3InYjw/sYKhD0A3ag0KOI7KM6jzwyHFIjMOAR+GW5d825jaLJ+\nYcAOcC00NLotFgn9duKEd+OHNcCreKEIlvEYTf/aYbFMqo3Bl+aUZ1aC2rYw\nvJCByYSx1F54xG/uebpT/dNHPGMMYmVqw26ceThjL3P8I2sRITYqaiAvK+Tv\nBMDAFLs1E3xKVfyoGA37FyWtvBmLQVUMNtp3yP35/Xq2vLQ76OdLeUQk9kGI\nnCtQyfOac+L8yJe9JfqR9+/G8VMZdoyzVA362QJ5eUG1GPFigkpYAPd9QPNa\n51h6\r\n=QDr/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2JLcFrJd05JLwNY/ZKjjhhVaNPw2q1USgFAt9rGXNsAiBG7AOGZX5FzckkFnoU2JgpXa3u9tpOfdux3ylDk9JqJA=="}],"size":15770,"noattachment":false,"key":"/multihashes/-/multihashes-4.0.2.tgz"},"_npmUser":{"name":"hugomrdias","email":"hugomrdias@gmail.com"},"directories":{},"maintainers":[{"name":"jacobheun","email":"jacobheun@gmail.com"},{"name":"daviddias","email":"mail@daviddias.me"},{"name":"hugomrdias","email":"hugomrdias@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multihashes_4.0.2_1614770900014_0.3725240292656635"},"_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":1614770900264,"_cnpm_publish_time":1614770900264,"dist-tags":{"latest":"4.0.3","next":"3.1.3-next.2"}}