@helia/json

@helia/json makes working with JSON in Helia simple & straightforward.

See the JSON interface for all available operations.

Example

import { createHelia } from 'helia'
import { json } from '@helia/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