multicodec

2019-08-16

multicodec是什么

什么是multicodec,JavaScript implementation of the multicodec specification

multicodec使用教程帮助文档

js-multicodec

Travis CICoverage Status

JavaScript implementation of the multicodec specification

Lead Maintainer

Henrique Dias

Table of Contents

  • Install
  • Usage
  • Updating the lookup table
  • Contribute
  • License

Install

> npm install multicodec
const multicodec = require('multicodec')

Usage

Example

const multicodec = require('multicodec')

const prefixedProtobuf = multicodec.addPrefix('protobuf', protobufBuffer)
// prefixedProtobuf 0x50...

API

https://multiformats.github.io/js-multicodec/

multicodec default table

Updating the lookup table

Updating the lookup table is done with a script. The source of truth is the multicodec default table. Update the table with running:

curl -X GET https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv | ./tools/update-table.py

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing documentfor 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-readmespecification.

License

MIT© 2016 Protocol Labs Inc.


上一篇:peer-id
下一篇:multibase
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部