{"name":"multihashes","version":"0.4.14","description":"multihash implementation","leadMaintainer":"David Dias <daviddias@ipfs.io>","main":"src/index.js","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","coverage":"aegir coverage","coverage-publish":"aegir coverage --provider coveralls"},"repository":{"type":"git","url":"git://github.com/multiformats/js-multihash.git"},"keywords":["multihash"],"license":"MIT","bugs":{"url":"https://github.com/multiformats/js-multihash/issues"},"dependencies":{"bs58":"^4.0.1","varint":"^5.0.0"},"devDependencies":{"aegir":"^15.1.0","buffer-equal":"1.0.0","chai":"^4.1.2","dirty-chai":"^2.0.1","pre-commit":"^1.2.2"},"contributors":[{"name":"Alan Shaw","email":"alan@tableflip.io"},{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Donald Tsang","email":"brandonknlee@gmail.com"},{"name":"Fil","email":"fil@rezo.net"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Juan Benet","email":"juan@benet.ai"},{"name":"Pedro Teixeira","email":"i@pgte.me"},{"name":"Richard Littauer","email":"richard.littauer@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":"greenkeeper[bot]","email":"greenkeeper[bot]@users.noreply.github.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"nginnever","email":"ginneversource@gmail.com"},{"name":"npm-to-cdn-bot","email":"npmcdn-to-unpkg-bot@users.noreply.github.com","url":"by Forbes Lindesay"},{"name":"victorbjelkholm","email":"victorbjelkholm@gmail.com"}],"gitHead":"a581e42b1dd24098dda4dc7e1ddc51fe833798a3","homepage":"https://github.com/multiformats/js-multihash#readme","_id":"multihashes@0.4.14","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"daviddias","email":"mail@daviddias.me"},"dist":{"integrity":"sha512-V/g/EIN6nALXfS/xHUAgtfPP3mn3sPIF/i9beuGKf25QXS2QZYCpeVJbDPEannkz32B2fihzCe2D/KMrbcmefg==","shasum":"774db9a161f81a8a27dc60788f91248e020f5244","tarball":"http://registry-npm.ywwl.com/multihashes/download/multihashes-0.4.14.tgz","fileCount":12,"unpackedSize":40759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbax5oCRA9TVsSAnZWagAASmAQAJwH0Uqiv+/HUzc0B8dC\nH2bVjNOUowM8ITbw8ikOCZsaZ1k+3l4ioXLzpjEX1dIVwgf8fLx/UzOFvJzH\nrqJZDRiKMbCKjt5fh7BnhfSYMDWb0wNMm+dlFHs/65A07dgN5dEjL9ze97v0\nuffjfjym/X41gsoYe1bgqfXtJ8xFRsCjOqMHl7RViQUP2eKvhfMdUzNBAw5D\n1Dbca3WXFIw8Tv3bXi8u9yRCRdKg3Xu6UUYfwMPqZhvBzn6plpq56N49L8fW\n87TcUi6fDbhQL2VK1znaUB+22dTOVhQ/S5Wr5puJHFs/2kENR8vdr1bdSLJ9\nJ0LSHmYF/lVvtunv9h1ACLdefTzdqeflLrvjR9gz4AZJlCThd/y/H7cJXKoR\nV92nM2NKkOCR275Zd3V0WHYObkeFHtDYS1Ozn9X5vZZhW+lANRnVDE0FBZht\nvtmJ44ITfx+xCR2gMnuoSa0vjzisIeCo6IdU3QkLPaZeGRCrsMSswqciVNgt\n+FNDdDB/AR6fhmurr70g4nKb/Sd8Mpw+0gbWIesg08cRQCHrnlgxFa9dbG9P\nem5MgH71PjUSIPcU/k5qIOt4isqgSls+ewm91PiT3ChGIfXxmg7pX5Op0zH2\n70g3FSrEHaJWjJCIVoVdGwRD+JKbY8+19u6DXGr94bJx9ulv6NVMxKWdpxqC\nQbVk\r\n=s1SW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUgXmisQ7BprjORVyLMYFyFXHERFuXCzJEXE76ZejwXAiEA8EmUFKAjsp3PZKXgzpDhlQlYaA0+w1kBf+3zG0hENsQ="}],"size":11245,"noattachment":false,"key":"/multihashes/-/multihashes-0.4.14.tgz"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"},{"name":"dignifiedquire","email":"dignifiedquire@gmail.com"},{"name":"vmx","email":"volker.mische@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multihashes_0.4.14_1533746792081_0.8516132652711175"},"_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":1533746792186,"_cnpm_publish_time":1533746792186,"dist-tags":{"latest":"4.0.3","next":"3.1.3-next.2"}}