-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 1.99 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "commondir",
"version": "0.0.1",
"description": "Compute the closest common parent for file paths",
"main": "index.js",
"directories": {
"lib": ".",
"example": "example",
"test": "test"
},
"dependencies": {},
"devDependencies": {
"expresso": "0.7.x"
},
"scripts": {
"test": "expresso"
},
"repository": {
"type": "git",
"url": "http://github.com/substack/node-commondir.git"
},
"keywords": [
"common",
"path",
"directory",
"file",
"parent",
"root"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT/X11",
"engine": {
"node": ">=0.4"
},
"readme": "commondir\n=========\n\nCompute the closest common parent directory among an array of directories.\n\nexample\n=======\n\ndir\n---\n\n > var commondir = require('commondir');\n > commondir([ '/x/y/z', '/x/y', '/x/y/w/q' ])\n '/x/y'\n\nbase\n----\n\n > var commondir = require('commondir')\n > commondir('/foo/bar', [ '../baz', '../../foo/quux', './bizzy' ])\n '/foo'\n\nmethods\n=======\n\nvar commondir = require('commondir');\n\ncommondir(absolutePaths)\n------------------------\n\nCompute the closest common parent directory for an array `absolutePaths`.\n\ncommondir(basedir, relativePaths)\n---------------------------------\n\nCompute the closest common parent directory for an array `relativePaths` which\nwill be resolved for each `dir` in `relativePaths` according to:\n`path.resolve(basedir, dir)`.\n\ninstallation\n============\n\nUsing [npm](http://npmjs.org), just do:\n\n npm install commondir\n",
"readmeFilename": "README.markdown",
"bugs": {
"url": "https://github.com/substack/node-commondir/issues"
},
"homepage": "https://github.com/substack/node-commondir",
"_id": "commondir@0.0.1",
"_shasum": "89f00fdcd51b519c578733fec563e6a6da7f5be2",
"_from": "commondir@0.0.1",
"_resolved": "https://registry.npmjs.org/commondir/-/commondir-0.0.1.tgz"
}