122 lines
3.9 KiB
JSON
122 lines
3.9 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "pkg-dir@^2.0.0",
|
|
"scope": null,
|
|
"escapedName": "pkg-dir",
|
|
"name": "pkg-dir",
|
|
"rawSpec": "^2.0.0",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/import-local"
|
|
]
|
|
],
|
|
"_from": "pkg-dir@>=2.0.0 <3.0.0",
|
|
"_id": "pkg-dir@2.0.0",
|
|
"_inCache": true,
|
|
"_location": "/pkg-dir",
|
|
"_nodeVersion": "4.7.3",
|
|
"_npmOperationalInternal": {
|
|
"host": "packages-12-west.internal.npmjs.com",
|
|
"tmp": "tmp/pkg-dir-2.0.0.tgz_1493912348467_0.855934705818072"
|
|
},
|
|
"_npmUser": {
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
},
|
|
"_npmVersion": "2.15.11",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "pkg-dir@^2.0.0",
|
|
"scope": null,
|
|
"escapedName": "pkg-dir",
|
|
"name": "pkg-dir",
|
|
"rawSpec": "^2.0.0",
|
|
"spec": ">=2.0.0 <3.0.0",
|
|
"type": "range"
|
|
},
|
|
"_requiredBy": [
|
|
"/import-local"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz",
|
|
"_shasum": "f6d5d1109e19d63edf428e0bd57e12777615334b",
|
|
"_shrinkwrap": null,
|
|
"_spec": "pkg-dir@^2.0.0",
|
|
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/import-local",
|
|
"author": {
|
|
"name": "Sindre Sorhus",
|
|
"email": "sindresorhus@gmail.com",
|
|
"url": "sindresorhus.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/sindresorhus/pkg-dir/issues"
|
|
},
|
|
"dependencies": {
|
|
"find-up": "^2.1.0"
|
|
},
|
|
"description": "Find the root directory of a Node.js project or npm package",
|
|
"devDependencies": {
|
|
"ava": "*",
|
|
"xo": "*"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "f6d5d1109e19d63edf428e0bd57e12777615334b",
|
|
"tarball": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz"
|
|
},
|
|
"engines": {
|
|
"node": ">=4"
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"gitHead": "c18df2945cd928787f3290042a6c69352b4e13a5",
|
|
"homepage": "https://github.com/sindresorhus/pkg-dir#readme",
|
|
"keywords": [
|
|
"package",
|
|
"json",
|
|
"root",
|
|
"npm",
|
|
"entry",
|
|
"find",
|
|
"up",
|
|
"find-up",
|
|
"findup",
|
|
"look-up",
|
|
"look",
|
|
"file",
|
|
"search",
|
|
"match",
|
|
"resolve",
|
|
"parent",
|
|
"parents",
|
|
"folder",
|
|
"directory",
|
|
"dir",
|
|
"walk",
|
|
"walking",
|
|
"path"
|
|
],
|
|
"license": "MIT",
|
|
"maintainers": [
|
|
{
|
|
"name": "sindresorhus",
|
|
"email": "sindresorhus@gmail.com"
|
|
}
|
|
],
|
|
"name": "pkg-dir",
|
|
"optionalDependencies": {},
|
|
"readme": "# pkg-dir [![Build Status](https://travis-ci.org/sindresorhus/pkg-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/pkg-dir)\n\n> Find the root directory of a Node.js project or npm package\n\n\n## Install\n\n```\n$ npm install --save pkg-dir\n```\n\n\n## Usage\n\n```\n/\n└── Users\n └── sindresorhus\n └── foo\n ├── package.json\n └── bar\n ├── baz\n └── example.js\n```\n\n```js\n// example.js\nconst pkgDir = require('pkg-dir');\n\npkgDir(__dirname).then(rootDir => {\n\tconsole.log(rootDir);\n\t//=> '/Users/sindresorhus/foo'\n});\n```\n\n\n## API\n\n### pkgDir([cwd])\n\nReturns a `Promise` for either the project root path or `null` if it couldn't be found.\n\n### pkgDir.sync([cwd])\n\nReturns the project root path or `null`.\n\n#### cwd\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nDirectory to start from.\n\n\n## Related\n\n- [pkg-dir-cli](https://github.com/sindresorhus/pkg-dir-cli) - CLI for this module\n- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file\n- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
|
|
"readmeFilename": "readme.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/sindresorhus/pkg-dir.git"
|
|
},
|
|
"scripts": {
|
|
"test": "xo && ava"
|
|
},
|
|
"version": "2.0.0"
|
|
}
|