Convert an IPLD Format module into a BlockCodec for use with the multiformats module.
$ npm i ipld-format-to-blockcodec
const { convert } = require('ipld-format-to-blockcodec')
const ipldGit = require('ipld-git')
const codec = convert(dagCbor)
// use BlockCodec methods
console.info(format.code)
console.info(format.encode)
console.info(format.decode)
// etc..
https://ipld.github.io/js-ipld-format-to-blockcodec/
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
This project is dual-licensed under Apache 2.0 and MIT terms:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)