jax-js
    Preparing search index...

    Constructors

    Methods

    • Clear all files from OPFS.

      Returns Promise<void>

    • Get file information for the given key.

      Parameters

      • name: string

      Returns Promise<OPFSFileInfo | null>

    • Read data from OPFS with the given key.

      Parameters

      • name: string

      Returns Promise<Uint8Array<ArrayBuffer> | null>

    • Remove a file from OPFS and return its info if it existed.

      Parameters

      • name: string

      Returns Promise<OPFSFileInfo | null>

    • Write data to OPFS with the given key.

      Parameters

      • name: string
      • data: Uint8Array<ArrayBuffer>

      Returns Promise<void>