• Parses a string to a URL object.

    Parameters

    • input: string

      A string representing a URL.

    Returns URL

    The URL object.