env-paths
Get paths for storing things like data, config, cache, etc
commondir
compute the closest common parent for file paths
common-path-prefix
Computes the longest prefix string that is common to each path, excluding the base component
common-sequence
Returns an array containing the initial elements which both input arrays have in common
xdg-app-paths
Determine (XDG-compatible) paths for storing application files (cache, config, data, etc)