Library API
    Preparing search index...

    Function opfsWriteJSON

    • Serializes and writes an object or value to a JSON file in OPFS. Note: Stored as plaintext readable by same-origin scripts. Direct callers requiring encrypted-at-rest storage must use getFileStore.

      Parameters

      • path: string

        Virtual path relative to OPFS root

      • data: any

        Object or value to serialize

      Returns Promise<void>