Documentation
    Preparing search index...

    Function canonicalisePath

    No description provided.

    • Canonicalise a given path string. e.g. /models/../textures/asphalt.png => /textures/asphalt.png

      Parameters

      • path: string

        A path string. Can be absolute or relative.

      • stripProtocol: boolean = false

        Whether the path needs to have a protocol stripped from it first (e.g. http://)

      Returns string

      Canonicalised string. Whether path was absolute or relative will be respected in the result.