{"name":"read-pkg-up","version":"6.0.0","description":"Read the closest package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["json","read","parse","file","fs","graceful","load","package","find","up","find-up","findup","look-up","look","search","match","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"find-up":"^4.0.0","read-pkg":"^5.1.1","type-fest":"^0.5.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"5267672e480d477fa727ac884dccfe8d29be5b54","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@6.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-odtTvLl+EXo1eTsMnoUHRmg/XmXdTkwXVxy4VFE9Kp6cCq7b3l7QMdBndND3eAFzrbSAXC/WCUOQQ9rLjifKZw==","shasum":"da75ce72762f2fa1f20c5a40d4dd80c77db969e3","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-6.0.0.tgz","fileCount":5,"unpackedSize":6225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2ECSCRA9TVsSAnZWagAAHF0QAIEQ2tABBNA0Kn8lVzlK\n/7D7vyt2KnGdIl60Gtaojil5smak5NoqQ/0AoOGA1DdUWQIgkVcfR/eBHj5C\nbJohS/IJFA2jAz9DRQ+XeCZFd5dS8+MN5X66FbZ/c3BLVm9TuIo22GDZNBY9\nbTTSHJbOS0t/a9ksCWNZoND5S+uRJcy7ipyhhTQa76+U+ZkgW6lR7kOUYIZs\nvf334I8y/hYbKfgOoTeApIQUvereaT6mPdyZkHRWSFcHHkeLeSiTNK5x2uuB\n1jdADmvri3ZfxeHMuCzqInTPOxsDAgEyPtvnx1kolmavvChnBa9i0HF8cQxz\nyG2KjR/JcJAnojSN+bedRxGIvzISwKI3sv9yN20C3LwUsLjNGaNHsVPt8+qO\nnHJvMg2vt8A0szmGlkb/igyCxjpDCZzSpFtZHvFzUUddUITTPnF7jm9Ud7ZB\nzI8TkrB3+YPPV77lRNlnDj1340Q6DjL+WPJY520nIfnCFSQUdtVAqs1ZEz/+\nHxWIP34mct8JBz3Ji61lRcPqvcgnW43htdonddG/NVCnnIti7Hq8ZRlgu5lu\nhqDEcXQiY0Ur9f19b2Lv6xDC3g0a2dZkXOEeGQkeaU0QQNDnFlk84WK/pVta\nYlOMDk0lXnR2UawH1jZsQAnv9Oz3o8+0OBu3/upbo0Ai2OERnPYleY8PCK9w\nFXYW\r\n=rPne\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9huZUId2N/+GnJWSyGKZmjezD1aMSMrNt40xXftAvuAiAAkauIZ6vGeOiWHgx4EiZsGaMAfRFA5T1sn0l3UW1Dug=="}],"size":2509,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_6.0.0_1557676177545_0.638382266348084"},"_hasShrinkwrap":false,"readme":"# read-pkg-up\n\n> Read the closest package.json file\n\n## Why\n\n- [Finds the closest package.json](https://github.com/sindresorhus/find-up)\n- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)\n- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)\n\n## Install\n\n```sh\nnpm install read-pkg-up\n```\n\n## Usage\n\n```js\nimport {readPackageUp} from 'read-pkg-up';\n\nconsole.log(await readPackageUp());\n/*\n{\n\tpackageJson: {\n\t\tname: 'awesome-package',\n\t\tversion: '1.0.0',\n\t\t…\n\t},\n\tpath: '/Users/sindresorhus/dev/awesome-package/package.json'\n}\n*/\n```\n\n## API\n\n### readPackageUp(options?)\n\nReturns a `Promise<object>`, or `Promise<undefined>` if no `package.json` was found.\n\n### readPackageUpSync(options?)\n\nReturns the result object, or `undefined` if no `package.json` was found.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nType: `URL | string`\\\nDefault: `process.cwd()`\n\nThe directory to start looking for a package.json file.\n\n##### normalize\n\nType: `boolean`\\\nDefault: `true`\n\n[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.\n\n## Related\n\n- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file\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- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json\n","publish_time":1557676177669,"_cnpm_publish_time":1557676177669,"dist-tags":{"latest":"11.0.0"}}