brows3r — TypeScript API
    Preparing search index...

    Function objectGetText

    • Fetch the first maxBytes bytes of an S3 object as a UTF-8 string.

      The backend reads the body using a range request, decodes with lossy UTF-8 (invalid bytes → U+FFFD), and returns a TextPayload.

      Parameters

      • profileId: string

        The profile whose credentials to use.

      • bucket: string

        The bucket name.

      • key: string

        The full S3 key of the object.

      • OptionalmaxBytes: number

        Maximum bytes to return. Defaults to 1 MB on the backend.

      Returns Promise<TextPayload>