2.0.0 • Published 3 years ago

blockcodec-to-ipld-format v2.0.0

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

blockcodec-to-ipld-format

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

Table of contents

Install

$ npm i blockcodec-to-ipld-format

Use

const { convert } = require('blockcodec-to-ipld-format')
const dagCbor = require('@ipld/dag-cbor')

const format = convert(dagCbor)

// use interface-ipld-format methods
console.info(format.codec)
console.info(format.defaultHashAlg)
console.info(format.util.serialize({ foo: 'bar' }))
// etc..

API

https://ipld.github.io/js-blockcodec-to-ipld-format/

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:

2.0.0

3 years ago

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago