Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 52.14.238.102
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
commondir /
Delete
Unzip
Name
Size
Permission
Date
Action
example
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
test
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
LICENSE
1.08
KB
-rw-rw-r--
2022-08-30 11:49
index.js
802
B
-rw-rw-r--
2022-08-30 11:49
package.json
636
B
-rw-rw-r--
2022-08-30 11:49
readme.markdown
780
B
-rw-rw-r--
2022-08-30 11:49
Save
Rename
# 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