@helia/dag-cbor

@helia/dag-cbor makes working with DAG-JSON Helia simple & straightforward.

See the DAGCBOR interface for all available operations.

Example

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' }

Index

Interfaces

Functions

Generated using TypeDoc