pkg-dir
Find the root directory of a Node.js project or npm package
commondir
compute the closest common parent for file paths
app-root-path
Determine an app's root path from anywhere inside the app
common-path-prefix
Computes the longest prefix string that is common to each path, excluding the base component