-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
47 lines (47 loc) · 2.58 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
{
"name": "parents",
"version": "0.0.3",
"description": "return all the parent directories for a directory",
"main": "index.js",
"bin": {},
"directories": {
"example": "example",
"test": "test"
},
"dependencies": {
"path-platform": "^0.0.1"
},
"devDependencies": {
"tap": "~0.2.5"
},
"scripts": {
"test": "tap test/*.js"
},
"repository": {
"type": "git",
"url": "git://github.com/substack/node-parents.git"
},
"homepage": "https://github.com/substack/node-parents",
"keywords": [
"directory",
"parent",
"path",
"tree"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT",
"engine": {
"node": ">=0.6"
},
"readme": "# parents\n\nReturn all the parent directories of a directory, inclusive of that directory.\n\n[![build status](https://secure.travis-ci.org/substack/node-parents.png)](http://travis-ci.org/substack/node-parents)\n\n# example\n\n## dirname\n\n``` js\nvar parents = require('parents');\nvar dirs = parents(__dirname);\nconsole.dir(dirs);\n```\n\n***\n\n```\n[ '/home/substack/projects/node-parents/example',\n '/home/substack/projects/node-parents',\n '/home/substack/projects',\n '/home/substack',\n '/home',\n '/' ]\n```\n\n## win32\n\n``` js\nvar parents = require('parents');\nvar dir = 'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000\\\\cities';\n\nvar dirs = parents(dir, { platform : 'win32' });\nconsole.dir(dirs);\n```\n\n***\n\n```\n[ 'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000\\\\cities',\n 'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000',\n 'C:\\\\Program Files\\\\Maxis',\n 'C:\\\\Program Files',\n 'C:' ]\n```\n\n# methods\n\n``` js\nvar parents = require('parents')\n```\n\n## parents(dir, opts)\n\nReturn an array of the parent directories of `dir`, including and starting with\n`dir`. If a `dir` isn't specified, `process.cwd()` will be used.\n\nOptionally specify an `opts.platform` to control whether the separator and paths\nworks the unixy way with `'/'` or the windowsy way where sometimes things use\n`'/'` and sometimes they use `'\\\\'` and also there are leading drive letters and\nother exotic features. If `opts.platform` isn't specified, `process.platform`\nwill be used. Anything that matches `/^win/` will use the windowsy behavior.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install parents\n```\n\n# licence\n\nMIT\n",
"readmeFilename": "readme.markdown",
"bugs": {
"url": "https://github.com/substack/node-parents/issues"
},
"_id": "parents@0.0.3",
"_from": "parents@~0.0.1"
}