@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Function deriveS3RegionFromEndpoint

    • Extracts the B2 S3 region from a standard B2 S3 endpoint.

      Custom endpoints cannot be inferred safely. Pass region explicitly to createS3ClientConfig, presignS3GetObjectUrl, or presignS3PutObjectUrl when this returns null.

      Parameters

      • endpoint: string

        The S3 endpoint URL.

      Returns string | null

      The derived region, or null when the endpoint is not a standard B2 S3 URL.