Lead Maintainer Table of Contents InstallJavaScript implementation of the multicodec specification
> npm install multicodecUsage Example
const multicodec = require('multicodec') const prefixedProtobuf = multicodec.addPrefix('protobuf', protobufBuffer) // prefixedProtobuf 0x50... // The multicodec codec values can be accessed directly: console.log(multicodec.DAG_CBOR) // 113 // To get the string representation of a codec, e.g. for error messages: console.log(multicodec.getNameFromCode(113)) // dag-cborAPI
https://multiformats.github.io/js-multicodec/
Updating the lookup tableUpdating the lookup table is done with a script. The source of truth is the multicodec default table. Update the table with running:
npm run update-table
Contribute
Contributions welcome. Please check out the issues.
Check out our contributing document 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.
Small note: If editing the README, please conform to the standard-readme specification.
LicenseMIT © 2016 Protocol Labs Inc.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4