common-dir

Returns the parent directory common to each path

common-path

Finds the longest common parent directory path in an array of file path strings or custom objects. Also returns sub and base parts for each path.

common-path-start

Detects the same starting part of the path in an array of file paths.