{"name":"multicodec","version":"0.1.1","description":"JavaScript implementation of the multicodec-packed specification","main":"lib/index.js","jsnext:main":"src/index.js","scripts":{"lint":"aegir-lint","test":"aegir-test","test:node":"aegir-test node","test:browser":"aegir-test browser","build":"aegir-build","release":"aegir-release","release-minor":"aegir-release --type minor","release-major":"aegir-release --type major","coverage":"aegir-coverage","coverage-publish":"aegir-coverage publish"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/multiformats/js-multicodec-packed.git"},"keywords":["IPFS","multiformats","multicodec","binary","packed","the","data!"],"author":{"name":"David Dias","email":"daviddias@ipfs.io"},"license":"MIT","bugs":{"url":"https://github.com/multiformats/js-multicodec-packed/issues"},"homepage":"https://github.com/multiformats/js-multicodec-packed#readme","dependencies":{"varint":"^4.0.1"},"devDependencies":{"aegir":"^9.1.2","chai":"^3.5.0","pre-commit":"^1.1.3"},"contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"kumavis","email":"aaron@kumavis.me"},{"name":"wanderer","email":"mjbecze@gmail.com"}],"gitHead":"aad3774f180e4469be67438d93e845d1c491cad8","_id":"multicodec@0.1.1","_shasum":"ec1508775910e36413c5e5758e824a47e960c1c4","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"daviddias","email":"daviddias.p@gmail.com"},"maintainers":[{"name":"daviddias","email":"daviddias.p@gmail.com"}],"dist":{"shasum":"ec1508775910e36413c5e5758e824a47e960c1c4","tarball":"http://registry-npm.ywwl.com/multicodec/download/multicodec-0.1.1.tgz","integrity":"sha512-kdr6IfDLvmo8qYP8iggqCFfPisWSrPbdr/f09RIaD22Nmfo6wdM1XU6tlSDE5mbimcPjYmdlasY88AFnZGXzug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKDYLcO1FdWL2LRvxfK+CdJxWejB1C/okcSOOU02KzbQIhANRBItwfkipps2PMzNlD3hhRd4H64vheNINeTPMuG/Lf"}],"size":45422,"noattachment":false,"key":"/multicodec/-/multicodec-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/multicodec-0.1.1.tgz_1480998212321_0.3698222483508289"},"directories":{},"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":1480998212931,"_cnpm_publish_time":1480998212931,"dist-tags":{"latest":"3.2.1"}}