• Test whether the url is a local url.

    Parameters

    • url: string
    • Optional allowRoot: boolean

      Whether the paths starting at Unix-style filesystem root (/) are permitted.

      Notes

      This function returns false for any fully qualified url, including data:, file:, and // protocol URLs.

    Returns boolean

Generated using TypeDoc