{"name":"multicodec","version":"3.2.1","description":"JavaScript implementation of the multicodec specification","leadMaintainer":"Henrique Dias <hacdias@gmail.com>","main":"src/index.js","types":"dist/src/index.d.ts","typesVersions":{"*":{"src/*":["dist/src/*","dist/src/*/index"],"src/":["dist/src/index"]}},"scripts":{"lint":"aegir lint","test":"aegir test","test:node":"aegir test --target node","test:browser":"aegir test --target browser","build":"aegir build","docs":"aegir docs","release":"aegir release","release-minor":"aegir release --type minor","release-major":"aegir release --type major","update-table":"node tools/update-table.js"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/multiformats/js-multicodec.git"},"keywords":["IPFS","multiformats","multicodec","binary","packed","the","data!"],"license":"MIT","bugs":{"url":"https://github.com/multiformats/js-multicodec/issues"},"homepage":"https://github.com/multiformats/js-multicodec#readme","dependencies":{"uint8arrays":"^3.0.0","varint":"^6.0.0"},"devDependencies":{"@types/varint":"^6.0.0","aegir":"^32.2.0","bent":"^7.3.12","pre-push":"~0.1.1","util":"^0.12.3"},"eslintConfig":{"extends":"ipfs"},"aegir":{"build":{"bundlesizeMax":"15kB"}},"contributors":[{"name":"Henrique Dias","email":"hacdias@gmail.com"},{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Volker Mische","email":"volker.mische@gmail.com"},{"name":"Hugo Dias","email":"hugomrdias@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"kumavis","email":"kumavis@users.noreply.github.com"},{"name":"Mikeal Rogers","email":"mikeal.rogers@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"wanderer","email":"mjbecze@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Rod Vagg","email":"rod@vagg.org"},{"name":"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ","email":"victorbjelkholm@gmail.com"},{"name":"Carson Farmer","email":"carson.farmer@gmail.com"},{"name":"Filip Š","email":"filip.stamcar@hotmail.com"},{"name":"Joel Thorstensson","email":"oed@3box.io"},{"name":"Jonas Kruckenberg","email":"iterpre@protonmail.com"},{"name":"Lars Gierth","email":"lgierth@users.noreply.github.com"},{"name":"Marcin Rataj","email":"lidel@lidel.org"},{"name":"Mitrasish Mukherjee","email":"34746546+rekpero@users.noreply.github.com"},{"name":"Peter-Jan Brone","email":"peter-jan@settlemint.com"},{"name":"Łukasz Magiera","email":"magik6k@users.noreply.github.com"}],"gitHead":"2945d8b4f65552cb93ae60892f69ee6fac24b359","_id":"multicodec@3.2.1","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-+expTPftro8VAW8kfvcuNNNBgb9gPeNYV9dn+z1kJRWF2vih+/S79f2RVeIwmrJBUJ6NT9IUPWnZDQvegEh5pw==","shasum":"82de3254a0fb163a107c1aab324f2a91ef51efb2","tarball":"http://registry-npm.ywwl.com/multicodec/download/multicodec-3.2.1.tgz","fileCount":22,"unpackedSize":243006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMRulCRA9TVsSAnZWagAAALkQAJzXZly9Ax4ocCZaM3tU\nFstn8UX//JEY4oXxASD3XlngD7S4BkARUz6b7YO93vFqkmpwHuDAfEOoHf9m\nG1MAzeDxxvEVXQOcZMfeImi8UA5tU1ni3TR1d/b0raES5h8FD6TbR6w+ey8q\nQ1ibNgldK2zk0huppOImQohvGnEgKhk3VzB3SDItiroz1COIBqpIf1/v3TpT\nx29jLEBSHlUJQrdbVrBQT93+c1RxXrJYOan7HWnlE/ClKvONiD9uDBlFKila\nffNaeUfw/wZBQZvF9bOk3u0I6nCUCH0zyCSFe8x5klI0n5lm02nCnkcq87/6\nhGrDFUy0Yzz8B4AVvSbKiXxoUpqMdYwuhlLO+hgfgGwOg525hiBFSAWqzEDv\nGOAHobDOxsi1IundGbh0AGFYaKVRFbcQ2Xh4gjRJMliv9doCJc92djnWIUhH\nZbbTF1YyNfVTGofBXxPprmHQRyMCsRO1erLSLEy27rQxckxfmmf2q24kz18N\ndZDp/EHq/1Vb0G08SaJUIHFOWM/lmffjd/gzQXVyRiJK5qrkFAlkNH1K/qqf\nceVwgbsj3jmy2jWpPh6GEzpyKSkuG4M6laX/Tpy3O+YOzG/q5IUVUwXirEZ9\n7ZJv08SASE/Gw3BYHEXeTcMRhc+GrVcChEdLXMiOG465bAzQfyJ6y00M5UCd\njpxM\r\n=UoCh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgYohM13TKHM6oZFgbsKy1xM8fehV8Azv2+tvsEiVeIQIhANqQ6kpSY7whwpszR3IPHglgFeLOYhL6s1DmXSQi0OoO"}],"size":42549,"noattachment":false,"key":"/multicodec/-/multicodec-3.2.1.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"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"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"hacdias","email":"hacdias@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/multicodec_3.2.1_1630608293371_0.8781341625344921"},"_hasShrinkwrap":false,"deprecated":"This module has been superseded by the multiformats module","readme":"# ⛔️ DEPRECATED: This module has been superseded by the [multiformats](https://github.com/multiformats/js-multiformats) module <!-- omit in toc -->\n\n# js-multicodec <!-- omit in toc -->\n\n[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](https://protocol.ai)\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[![](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/multiformats/js-multicodec/ci/master?style=flat-square)\n![Codecov](https://img.shields.io/codecov/c/github/multiformats/js-multicodec?style=flat-square)\n\n> JavaScript implementation of the multicodec specification\n\n## Lead Maintainer <!-- omit in toc -->\n\n[Henrique Dias](http://github.com/hacdias)\n\n## Table of Contents <!-- omit in toc -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Example](#example)\n  - [API](#api)\n- [Updating the lookup table](#updating-the-lookup-table)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Install\n\n```sh\n> npm install multicodec\n```\n\n## Usage\n\n### Example\n\n```JavaScript\n\nconst multicodec = require('multicodec')\n\nconst prefixedProtobuf = multicodec.addPrefix('protobuf', protobufBuffer)\n// prefixedProtobuf 0x50...\n\n// The multicodec codec values can be accessed directly:\nconsole.log(multicodec.DAG_CBOR)\n// 113\n\n// To get the string representation of a codec, e.g. for error messages:\nconsole.log(multicodec.getNameFromCode(113))\n// dag-cbor\n```\n\n### API\n\nhttps://multiformats.github.io/js-multicodec/\n\n[multicodec default table](https://github.com/multiformats/multicodec/blob/master/table.csv)\n\n## Updating the lookup table\n\nUpdating the lookup table is done with a script. The source of truth is the\n[multicodec default table](https://github.com/multiformats/multicodec/blob/master/table.csv).\nUpdate the table with running:\n\n    npm run update-table\n\n## Contribute\n\nContributions welcome. Please check out [the issues](https://github.com/multiformats/js-multicodec/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","publish_time":1630608293489,"_cnpm_publish_time":1630608293489,"dist-tags":{"latest":"3.2.1"}}