@helia/dag-cbor makes working with DAG-JSON Helia simple & straightforward.
@helia/dag-cbor
See the DAGCBOR interface for all available operations.
import { createHelia } from 'helia'import { dagCbor } from '@helia/dag-cbor'import { CID } from 'multiformats/cid'const d = dagCbor(helia)const cid = await d.put({ hello: 'world'})const obj = await d.get(cid)console.info(obj)// { hello: 'world' } Copy
import { createHelia } from 'helia'import { dagCbor } from '@helia/dag-cbor'import { CID } from 'multiformats/cid'const d = dagCbor(helia)const cid = await d.put({ hello: 'world'})const obj = await d.get(cid)console.info(obj)// { hello: 'world' }
Generated using TypeDoc
@helia/dag-cbor
makes working with DAG-JSON Helia simple & straightforward.See the DAGCBOR interface for all available operations.
Example