0.0.1 • Published 3 years ago

ipld-format-to-blockcodec v0.0.1

Weekly downloads
-
License
MIT/Apache
Repository
github
Last release
3 years ago

ipld-format-to-blockcodec

Convert an IPLD Format module into a BlockCodec for use with the multiformats module.

Table of contents

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.

npm.io

License

This project is dual-licensed under Apache 2.0 and MIT terms: