@helia/dag-json makes working with DAG-JSON Helia simple & straightforward.
@helia/dag-json
See the DAGJSON interface for all available operations.
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' } Copy
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' }
Generated using TypeDoc
@helia/dag-json
makes working with DAG-JSON Helia simple & straightforward.See the DAGJSON interface for all available operations.
Example