Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (34 loc) · 1.63 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.63 KB

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.

License

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