{"name":"read-pkg-up","version":"8.0.0","description":"Read the closest package.json file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/read-pkg-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"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":"^5.0.0","read-pkg":"^6.0.0","type-fest":"^1.0.1"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"c4f8985c36dacac551e72580c8571d88feffe3c9","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@8.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==","shasum":"72f595b65e66110f43b052dd9af4de6b10534670","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-8.0.0.tgz","fileCount":5,"unpackedSize":6605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYC8ICRA9TVsSAnZWagAAXtcQAKFn0Pw2QRmIgZN6P05+\nZfp3OHwIrvb8hX7bS2RkUi0fL00cuMPE0nvrVXkXgg0cCOPsvGSKnyk2/ACG\nV4+X5kOH5itDENbJM4ze1JIAG+pW2CNXhOnVewNNNuLod2LBwcZq3grOSLYl\n/ObnDkX/xP5avCHM597CDHQ1cif3OYd6F/QIo6DYD8SJoq+foYEnuA7uSvNa\nWa62AB5LIZJXvtUFVaHvKCPiBZ2fzeE1uW59UzU6KIWl7IIyN7PxZLW5RnJR\nxz9n3NUEymXjEIHDkWfrNJkRrjxuTfmOldrASeQc6gT/XnZjnVCiFDmu0/2b\nTvno90DI0tOSZzCA/yZ7Nv+lvnwfGgq1We8JJKPCZzm6W7PTBJwbMDMk9jhB\nbhDdiyEId+ilWWtSy28BkVxc53jtfAjchEbpk336V93fofzkkEMvlCs1MzcH\nMsXedfitLz5EuYC/x/7LE2zkje4Z5aJyMbrlCTeuwar00+vVUl6HbRlwR2Tr\nMU9DY5Mk2Qm2WlTJuIe9kNjgoUyaNZM9XawcKJUBm7P9vC5bYfza7C7yhdYv\nCeizseVeBwZc1/A8r/o4vlBCMzYOheF876Zc3ksjlPyMjL97uxxURu7gE7XT\nVAVfYIMFD6ApZAnI01IYymPrfkN8Y8nzHYgF8MQwhsulMdj3LVVxnR3nXg/x\naafD\r\n=3K5k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWVL0HyaN/YRz6E6CSp/3eo2JPUorBnlpEziI7I2snPAiEAyRO4hbA+9DCHluwppH3r4sksN7A6pYPmuyJP+enagH0="}],"size":2579,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-8.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_8.0.0_1616916232317_0.07709043280821426"},"_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":1616916232501,"_cnpm_publish_time":1616916232501,"dist-tags":{"latest":"11.0.0"}}