@helia/dag-json

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

See the DAGJSON interface for all available operations.

Example

import { createHelia } from 'helia'
import { json } from '@helia/dag-json'
import { CID } from 'multiformats/cid'

const j = json(helia)
const cid = await j.put({
hello: 'world'
})
const obj = await j.get(cid)

console.info(obj)
// { hello: 'world' }

Index

Interfaces

Functions

Generated using TypeDoc