layaair2-cmd
Version:
layaair version 2 toolkit
101 lines (100 loc) • 4.07 kB
JSON
{
"_args": [
[
{
"raw": "parents@^1.0.1",
"scope": null,
"escapedName": "parents",
"name": "parents",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify"
]
],
"_from": "parents@>=1.0.1 <2.0.0",
"_id": "parents@1.0.1",
"_inCache": true,
"_location": "/parents",
"_nodeVersion": "0.10.35",
"_npmUser": {
"name": "substack",
"email": "mail@substack.net"
},
"_npmVersion": "2.1.16",
"_phantomChildren": {},
"_requested": {
"raw": "parents@^1.0.1",
"scope": null,
"escapedName": "parents",
"name": "parents",
"rawSpec": "^1.0.1",
"spec": ">=1.0.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/browserify",
"/module-deps"
],
"_resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz",
"_shasum": "fedd4d2bf193a77745fe71e371d73c3307d9c751",
"_shrinkwrap": null,
"_spec": "parents@^1.0.1",
"_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\browserify",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bin": {},
"bugs": {
"url": "https://github.com/substack/node-parents/issues"
},
"dependencies": {
"path-platform": "~0.11.15"
},
"description": "return all the parent directories for a directory",
"devDependencies": {
"tap": "~0.2.5"
},
"directories": {
"example": "example",
"test": "test"
},
"dist": {
"shasum": "fedd4d2bf193a77745fe71e371d73c3307d9c751",
"tarball": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz"
},
"engine": {
"node": ">=0.6"
},
"gitHead": "1a90e0b70695f08e3eab32be2f1a867b4bbe6880",
"homepage": "https://github.com/substack/node-parents",
"keywords": [
"directory",
"parent",
"path",
"tree"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "substack",
"email": "mail@substack.net"
}
],
"name": "parents",
"optionalDependencies": {},
"readme": "# parents\n\nReturn all the parent directories of a directory, inclusive of that directory.\n\n[](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",
"repository": {
"type": "git",
"url": "git://github.com/substack/node-parents.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "1.0.1"
}