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.

Browse on unpkg