Skip to content

Gun-Vue docs v0.21.4Docs


Gun-Vue docs v0.21.4 / Gun / useGun

Function: useGun()

useGun(options?): IGunInstance<any>

Instantiate a Gun instance for DB manipulations

Parameters

options?: GunOptions = ...

Gun options

Returns

IGunInstance<any>

Example

ts
import { useGun } from '@gun-vue/composables'
const gun = useGun()

Defined in

src/gun/useGun.js:35

MIT