{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["pkg","package","file","find","up","find-up","findup","look-up","look","search","match","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Find the closest package.json file","readme":"# pkg-up [![Build Status](https://travis-ci.org/sindresorhus/pkg-up.svg?branch=master)](https://travis-ci.org/sindresorhus/pkg-up)\n\n> Find the closest package.json file\n\n\n## Install\n\n```\n$ npm install --save pkg-up\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 pkgUp = require('pkg-up');\n\npkgUp().then(filepath => {\n\tconsole.log(filepath);\n\t//=> '/Users/sindresorhus/foo/package.json'\n});\n```\n\n\n## API\n\n### pkgUp([cwd])\n\nReturns a `Promise` for either the filepath or `null` if it could be found.\n\n### pkgUp.sync([cwd])\n\nReturns the filepath or `null`.\n\n#### cwd\n\nType: `string`\nDefault: `process.cwd()`\n\nDirectory to start from.\n\n\n## Related\n\n- [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file\n- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package\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","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pkg-up.git"},"users":{"huhgawz":true},"bugs":{"url":"https://github.com/sindresorhus/pkg-up/issues"},"license":"MIT","versions":{"1.0.0":{"name":"pkg-up","version":"1.0.0","description":"Find the closest package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pkg-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pkg","package","file","find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"find-up":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"fdbaf6200f31e1e4878c4fc8298966804554cfc4","bugs":{"url":"https://github.com/sindresorhus/pkg-up/issues"},"homepage":"https://github.com/sindresorhus/pkg-up#readme","_id":"pkg-up@1.0.0","_shasum":"3e08fb461525c4421624a33b9f7e6d0af5b05a26","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e08fb461525c4421624a33b9f7e6d0af5b05a26","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/pkg-up/-/pkg-up-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"pkg-up","version":"2.0.0","description":"Find the closest package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/pkg-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["pkg","package","file","find","up","find-up","findup","look-up","look","search","match","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"find-up":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"a3d7ab574308dc311118d360f178f833bb2b693c","bugs":{"url":"https://github.com/sindresorhus/pkg-up/issues"},"homepage":"https://github.com/sindresorhus/pkg-up#readme","_id":"pkg-up@2.0.0","_shasum":"c819ac728059a461cab1c3889a2be3c49a004d7f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c819ac728059a461cab1c3889a2be3c49a004d7f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/pkg-up/-/pkg-up-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pkg-up-2.0.0.tgz_1493911467499_0.2755624745041132"},"directories":{}}},"name":"pkg-up","time":{"modified":"2017-05-04T15:24:27.726Z","created":"2015-09-21T10:17:20.550Z","1.0.0":"2015-09-21T10:17:20.550Z","2.0.0":"2017-05-04T15:24:27.726Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/pkg-up#readme"}