Awesome
ipld-format-to-blockcodec <!-- omit in toc -->
Convert an IPLD Format module into a BlockCodec for use with the multiformats module.
Table of contents <!-- omit in toc -->
Install
$ npm i ipld-format-to-blockcodec
Use
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..
API
https://ipld.github.io/js-ipld-format-to-blockcodec/
Contribute
Feel free to join in. All welcome. Open an issue!
This repository falls under the IPFS Code of Conduct.
License
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)