Function decodeMaskedUrl

  • Decodes a MASKED inspect URL into an EconItem (convenience function) ⚠️ ONLY works with MASKED URLs - use inspectItem() for universal support

    ⚡ OPTIMIZED: Uses static methods directly - no instance creation

    Parameters

    • url: string

      The MASKED inspect URL to decode

    • Optional config: CS2InspectConfig

      Optional configuration

    Returns EconItem

    The decoded item data

    Throws

    Error if URL is unmasked or invalid

    Example

    // Fast offline decoding for masked URLs
    const item = decodeMaskedUrl(maskedUrl);

    // For better performance in loops, analyze once:
    const analyzed = analyzeUrl(url);
    if (analyzed.url_type === 'masked' && analyzed.hex_data) {
    const item = decodeMaskedData(analyzed.hex_data);
    }