localfs
    Preparing search index...

    Function normalize

    • Resolves . and .. elements in a path

      Parameters

      • path: string[]

        A path array.

      • allowUpstream: boolean

        Allow relative paths to continue upstream

        normalize(toArray("./folder/../../../../file"), false)  // returns []
        normalize(toArray("./folder/../../../../file"), true) // returns toArray('../../../file')

      Returns string[]

      toArray