Function identifyExtension

  • Returns the file extension from a given URL string.

    Parameters

    • urlString: string

      The URL string.

    Returns string

    The file extension.

    Example

    console.log(identifyExtension('https://example.com/image.jpg')); // 'jpg'
    

Generated using TypeDoc