Function commonPath

    • Finds the common base path of a collection of paths.

      Parameters

      • ...paths: string[]

        Paths to find a common base path.

      Returns string

      The common base path. (Unix)