@zkochan/pnpm
Version:
Fast, disk space efficient package manager
123 lines (122 loc) • 5.88 kB
JSON
{
"_args": [
[
{
"raw": "find-up@3.0.0",
"scope": null,
"escapedName": "find-up",
"name": "find-up",
"rawSpec": "3.0.0",
"spec": "3.0.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/config"
]
],
"_from": "find-up@3.0.0",
"_id": "find-up@3.0.0",
"_inCache": true,
"_location": "/find-up",
"_nodeVersion": "8.11.2",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/find-up_3.0.0_1529313561272_0.9299595096856903"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "find-up@3.0.0",
"scope": null,
"escapedName": "find-up",
"name": "find-up",
"rawSpec": "3.0.0",
"spec": "3.0.0",
"type": "version"
},
"_requiredBy": [
"/@pnpm/config"
],
"_resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
"_shasum": "49169f1d7993430646da61ecc5ae355c21c97b73",
"_shrinkwrap": null,
"_spec": "find-up@3.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/config",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/find-up/issues"
},
"dependencies": {
"locate-path": "^3.0.0"
},
"description": "Find a file or directory by walking up parent directories",
"devDependencies": {
"ava": "*",
"tempy": "^0.2.1",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
"shasum": "49169f1d7993430646da61ecc5ae355c21c97b73",
"tarball": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
"fileCount": 4,
"unpackedSize": 4845,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ3kZCRA9TVsSAnZWagAAfx0P/i+gkVWTJv3VhXz8EbEf\n3LQ9D2YyTKUseUs5GYfYEmZuJ1QpwqCADP5981jiLwl8MBL1QFq4GqIPD74/\n3XWNSff5pqGg2+/z8fIOKQVi/VcRZYKfZ3BVWMRf0kldgonCxLsQVuOoEXOQ\n90aFj9OsilQRKjwfltiFysvyPFo4rEQRiC4fh0YHant7vtUVIucCQTmWmoB+\n9y9M3nplqA7IiiCZhLX5OKqXW27FzA/em006Fi16LiA6/dOdXAgcWwn49Ha3\n1K0zfxh47sGKA/noxaxVS63h+og9XgYdhewrO7rU2zvtbwyuAgJoAPK/8448\nqk+YEpxG+YuNp4t2eU+XtS5yEKuEEC/R6f3qN7BoNkuS9EKnM56LuWj1yinQ\nyyvbtuuwFbwmtMGLCZVANiDR0+UAGpzJKW0KZs9kg9USpEfkp07oNwuLQQuw\neSdz1vblDju3Txa0N0hFHckn4B8+zyL/VQwVE1aA2bXrfLMby8k1rHQq4r3R\nwAMgU1If5UVS9obuuoYKW9B4EGBabI4o0rvKfsMMNY1+TYi3AUeFArRuYF1D\nJODWneatuNZHU06fMM7+kV5r+5aZfFfqJcbyx0Qdly12X8glIgGciAExeXtb\nB8UImgyhT0Nz2/hpSNgW/6P8+vfFze1uIodDvSezJk3b6Vc7LAH1SNy3kYKh\n9rVa\r\n=sd/n\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js"
],
"gitHead": "2319b79a9e728fc13fc1a1a15e84bf5df100719e",
"homepage": "https://github.com/sindresorhus/find-up#readme",
"keywords": [
"find",
"up",
"find-up",
"findup",
"look-up",
"look",
"file",
"search",
"match",
"package",
"resolve",
"parent",
"parents",
"folder",
"directory",
"dir",
"walk",
"walking",
"path"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "find-up",
"optionalDependencies": {},
"readme": "# find-up [](https://travis-ci.org/sindresorhus/find-up) [](https://ci.appveyor.com/project/sindresorhus/find-up/branch/master)\n\n> Find a file or directory by walking up parent directories\n\n\n## Install\n\n```\n$ npm install find-up\n```\n\n\n## Usage\n\n```\n/\n└── Users\n\t\t└── sindresorhus\n\t\t\t\t├── unicorn.png\n\t\t\t\t└── foo\n\t\t\t\t\t\t└── bar\n\t\t\t\t\t\t\t\t├── baz\n\t\t\t\t\t\t\t\t└── example.js\n```\n\n`example.js`\n\n```js\nconst findUp = require('find-up');\n\n(async () => {\n\tconsole.log(await findUp('unicorn.png'));\n\t//=> '/Users/sindresorhus/unicorn.png'\n\n\tconsole.log(await findUp(['rainbow.png', 'unicorn.png']));\n\t//=> '/Users/sindresorhus/unicorn.png'\n})();\n```\n\n\n## API\n\n### findUp(filename, [options])\n\nReturns a `Promise` for either the filepath or `null` if it couldn't be found.\n\n### findUp([filenameA, filenameB], [options])\n\nReturns a `Promise` for either the first filepath found (by respecting the order) or `null` if none could be found.\n\n### findUp.sync(filename, [options])\n\nReturns a filepath or `null`.\n\n### findUp.sync([filenameA, filenameB], [options])\n\nReturns the first filepath found (by respecting the order) or `null`.\n\n#### filename\n\nType: `string`\n\nFilename of the file to find.\n\n#### options\n\nType: `Object`\n\n##### cwd\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nDirectory to start from.\n\n\n## Related\n\n- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module\n- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file\n- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package\n- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/find-up.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "3.0.0"
}