commondir

compute the closest common parent for file paths
v1.0.1 URL: https://unpkg.com/commondir@1.0.1/index.js
OpenBrowse Files
commonpathdirectoryfileparentroot

find-root

find the closest package.json
v1.1.0 URL: https://unpkg.com/find-root@1.1.0/index.js
OpenBrowse Files
fsgetfindclosestpackagemodulebaseroot

common-path-prefix

Computes the longest prefix string that is common to each path, excluding the base component
v3.0.0 URL: https://unpkg.com/common-path-prefix@3.0.0/index.js
OpenBrowse Files
commonpathdirectorydirfileroottypescriptcommon prefixcommon pathcommon path startcommon root

global-directory

Get the directory of globally installed packages and binaries
v4.0.1 URL: https://unpkg.com/global-directory@4.0.1/index.js
OpenBrowse Files
globalprefixpathpathsnpmyarnnodemodulesnode-modulespackagepackagesbinarybinariesbindirectorydirectoriesnpmrcrcconfigrootresolve

path-root-regex

Regular expression for getting the root of a posix or windows filepath.
v0.1.2 URL: https://unpkg.com/path-root-regex@0.1.2/index.js
OpenBrowse Files
detectexpressionfilefilepathmatchparsepathregexregexpregularroottest