commondir
commondir
compute the closest common parent directory among an array of directories
example
output:
methods
commondir(absolutePaths)
Compute the closest common parent directory for an array absolutePaths
.
commondir(basedir, relativePaths)
Compute the closest common parent directory for an array relativePaths
which will be resolved for each dir
in relativePaths
according to: path.resolve(basedir, dir)
.
install
With npm do:
license
MIT
Last updated