{"_id":"@arve.knudsen/multihashes","_rev":"1-ada5a1388f57d87924d3b82ca4aad2e4","name":"@arve.knudsen/multihashes","dist-tags":{"latest":"0.4.15"},"versions":{"0.4.15":{"name":"@arve.knudsen/multihashes","version":"0.4.15","description":"multihash implementation","leadMaintainer":"Arve Knudsen <arve.knudsen@gmail.com>","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/%40arve.knudsen/js-multihash.git"},"keywords":["multihash"],"license":"MIT","bugs":{"url":"https://github.com/@arve.knudsen/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":"cc9591488746da84fe9ae02e686f877fa6688928","homepage":"https://github.com/%40arve.knudsen/js-multihash#readme","_id":"@arve.knudsen/multihashes@0.4.15","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-Rjwopn0EKTVAly8zIE+8HA9c2xS86LwCpPV5f74f1bk8uUv1CpjWz56M+xOCk1l/aJU1QXYlskrfsvjuwACGbw==","shasum":"c4127d667fbb5baedd22ffd010b67534d7b79eaa","tarball":"https://registry.npmjs.org/@arve.knudsen/multihashes/-/multihashes-0.4.15.tgz","fileCount":12,"unpackedSize":40862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJFF8CRA9TVsSAnZWagAA/4EP/jIXnKsCopGMAXynNEY/\nt1ZdnME99cvV2z23ObJne7CadwCRs5OGXK5WF8HJZxfnSQ3rQqyBDJJS0AHF\nR2Q8ffetvp2cGpWnyNYrGNxckh1SxOvbrIZZOCSLbfPLBVWjFMYxrOFaC1Ca\nz5Oga1Rlqr1q7NuJeRy2Gwdh6H0JREmXac44/K+Rj7shi1FiYYjaqHen9itk\nLDb/9HwxlRHVVIK4OSVVE6xHYVNLSpEmCkeEgOd1tFaBROBEui/2HwXPG7ON\nCxBkdQBb94P0yoVxural/59Xadu0kXwDnKzAtv7pUCrZomg5lEaBKtZGWSjz\nDL248cVidUPMBWO7W723jMW2VtOLp4qluUAXcAPod9ubGOYEOntBO2JqKO8o\nRqwBrGSRvDf+V6E9oZH4D7sH3dhO0yPk31PUhEbjtMJfGm0DGImV21bHKZ6x\nkiyGafxwuH9+SfZAaLsm0UZBMugxndIxUCF7JocOwfWccCE8yJruly9U30bd\nTzEXe69aSHrk0ncMfJwXcMAS/ftE6btdHy9Z/0243E8ww2QMvxPK4EusM/Fj\nS49GoDjM67Pm+3Nj2wai9nx+9Bnm4VB3O0T4BmXL/KecoHBPCKZDAOTeYune\n5wwGK5GYvZj3GMzDJzEOJvNbCwLAYaK/VoMpz3C77JCiY/fVkB2tPrEK09Hx\n/v4t\r\n=5bXA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVwGdkkPijdY8CSPdCxzoe7np0M5cx/8L04xAXutOMPwIhAJfEAJnp4e8mjUW2VXKwYrD6+Xh3XBkvfXXSoKtWC83Z"}]},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"_npmUser":{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multihashes_0.4.15_1562661244078_0.3148170634505083"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-09T08:34:03.858Z","0.4.15":"2019-07-09T08:34:04.225Z","modified":"2022-04-04T15:41:17.240Z"},"maintainers":[{"name":"arve.knudsen","email":"arve.knudsen@gmail.com"}],"description":"multihash implementation","homepage":"https://github.com/%40arve.knudsen/js-multihash#readme","keywords":["multihash"],"repository":{"type":"git","url":"git://github.com/%40arve.knudsen/js-multihash.git"},"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"}],"bugs":{"url":"https://github.com/@arve.knudsen/js-multihash/issues"},"license":"MIT","readme":"js-multihash\n============\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[![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihash/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihash?branch=master)\n[![Travis CI](https://img.shields.io/travis/multiformats/js-multihash.svg?style=flat-square&branch=master)](https://travis-ci.org/multiformats/js-multihash)\n[![Circle CI](https://circleci.com/gh/multiformats/js-multihash.svg?style=svg)](https://circleci.com/gh/multiformats/js-multihash)\n[![Dependency Status](https://david-dm.org/multiformats/js-multihash.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihash)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)\n[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\n> multihash implementation in node.js\n\nThis is the [multihash](//github.com/multiformats/multihash) implementation in Node.\n\n## Lead Maintainer\n\n[David Dias](http://github.com/diasdavid/)\n\n## Table of Contents\n\n- [Install](#install)\n  - [In Node.js through npm](#in-nodejs-through-npm)\n  - [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers)\n  - [In the Browser through `<script>` tag](#in-the-browser-through-script-tag)\n    - [Gotchas](#gotchas)\n- [Usage](#usage)\n- [API](#api)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n### Using npm\n\n```bash\n> npm install --save multihashes # node the name of the module is multihashes\n```\n\nOnce the install is complete, you can require it as a normal dependency\n\n```js\nconst multihashes = require('multihashes')\n```\n\nYou can require it and use with your favourite bundler to bundle this package in a browser compatible code.\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```\n<script src=\"https://unpkg.com/multihashes/dist/index.min.js\"></script>\n<!-- OR -->\n<script src=\"https://unpkg.com/multihashes/dist/index.js\"></script>\n```\n\n#### Gotchas\n\nYou will need to use Node.js `Buffer` API compatible, if you are running inside the browser, you can access it by `multihash.Buffer` or you can install Feross's [Buffer](https://github.com/feross/buffer).\n\n## Usage\n\n```js\n> var multihash = require('multihashes')\n> var buf = new Buffer('0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', 'hex')\n\n> var encoded = multihash.encode(buf, 'sha1')\n> console.log(encoded)\n<Buffer 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: <Buffer 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## 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) © 2016 Protocol Labs Inc.\n","readmeFilename":"README.md"}