ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.145.64.178 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/node_modules/commondir/ |
Upload File : |
# commondir compute the closest common parent directory among an array of directories # example ``` js var commondir = require('commondir'); var dir = commondir(process.argv.slice(2)) console.log(dir); ``` output: ``` $ node dir.js /x/y/z /x/y /x/y/w/q /x/y $ node ../baz ../../foo/quux ./bizzy /foo ``` # methods ``` js var commondir = require('commondir'); ``` ## 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](https://npmjs.org) do: ``` npm install commondir ``` # license MIT