Enhanced URL analyzer with comprehensive validation

Constructors

Methods

  • Formats an analyzed URL back to string format

    Parameters

    • urlInfo: AnalyzedInspectURL
    • options: {
          quote?: boolean;
          includeSteamPrefix?: boolean;
      } = {}
      • Optional quote?: boolean
      • Optional includeSteamPrefix?: boolean

    Returns string

  • Extracts basic information from URL without full decoding

    Parameters

    • url: string

    Returns {
        type: "masked" | "unmasked" | "invalid";
        isQuoted: boolean;
        hasValidFormat: boolean;
        estimatedSize?: number;
    }

    • type: "masked" | "unmasked" | "invalid"
    • isQuoted: boolean
    • hasValidFormat: boolean
    • Optional estimatedSize?: number
  • Checks if URL is likely a valid inspect URL without throwing errors

    Parameters

    • url: string

    Returns boolean

  • Normalizes URL format (converts to quoted Steam URL)

    Parameters

    • url: string

    Returns string

  • Check if URL requires Steam client for inspection

    Parameters

    • url: string

    Returns boolean