Function extractFilenameFromUrl

  • Extracts a filename from a URL. Falls back to a regex match (and finally the original string) when the URL cannot be parsed by the URL constructor.

    Returns

    The filename, or the original input if none can be derived.

    Parameters

    • url: string

      URL to extract the filename from.

    Returns string

Generated using TypeDoc