@synonymdev/pubky
    Preparing search index...

    Interface ResourceStats

    Resource metadata returned by SessionStorage.stats() and PublicStorage.stats().

    const stats = await pubky.publicStorage.stats(`${user}/pub/app/file.json`);
    if (stats) {
    console.log(stats.contentLength, stats.contentType, stats.lastModifiedMs);
    }

    Notes:
    - `contentLength` equals `getBytes(...).length`.
    - `etag` may be absent and is opaque; compare values to detect updates.
    - `lastModifiedMs` increases when the resource is updated.
    interface ResourceStats {
        contentLength?: number;
        contentType?: string;
        etag?: string;
        lastModifiedMs?: number;
    }
    Index
    contentLength?: number

    Size in bytes.

    contentType?: string

    Media type (e.g. "application/json; charset=utf-8").

    etag?: string

    Opaque server ETag for the current version.

    lastModifiedMs?: number

    Unix epoch milliseconds.