|
sfcode
An Online Competing and Development Environment
|
compute the closest common parent directory among an array of directories
output:
Compute the closest common parent directory for an array absolutePaths.
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).
With npm do:
MIT