{"name":"read-pkg-up","version":"7.0.1","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":"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.1.0","read-pkg":"^5.2.0","type-fest":"^0.8.1"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.9.0","xo":"^0.25.3"},"gitHead":"c92040fcf5f4080cf7a0668184771de52e37a10e","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@7.0.1","_nodeVersion":"10.17.0","_npmVersion":"6.13.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==","shasum":"f3a6135758459733ae2b95638056e1854e7ef507","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-7.0.1.tgz","fileCount":5,"unpackedSize":6727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6g8QCRA9TVsSAnZWagAAluwP/13duxcxu3uiik8SYfVz\ngsnpE/jCC5jFbhzZPN0If8ZRZ64rGNEIDwbjDdAR2KFiHMb7pVFwdavaR1eR\nbEKTvCo1kb6S9F7dM6Ti2XLaiBBOwFDaOIk3ptwCuei3+YsapWD/URRWvuqF\nw7Ux7TeMyyog7BRTrgPuIyxZcVY8fUDSGgAp8DV1Rug6Hn22+jgVDnwxAI+y\nUsZAUFPoCLXCYQWcadyGKVO3DYd5H5lwCphy1aT0T7/f2fYGuEUtqumU6PAg\n6Lct3rqEG+EyK8x0Mcpz+9QHa2UyJLG/fbDu//zVAqr5IoMFD3KnYBpFDGga\nMC4zO+FdS1P2cewI/fbXyEbkyy5gxKEglWa/JF6tBEqxPju4A8Ee5hI9O0hc\nzaMomxmQ4cKOMj3uSlRtbgRm9sNap6NPeYyObAKyeK1JMjA9DDkdyP8bKzjH\nIR0GBAs2XqoJ1SN8rd2Avb/AvmW3WaDODNQ4E+ChpjJNWVEFvftHnIeeJ7Us\nOmpSyf0oZJimFmulu/aQA3tXEI0k8I6hEhzVoxwHxA+5gsPFrkg2csDxuRzq\nNv9xmU+EkP0lyFruH3BE01aJVzFBcO/MGRDzdR4wuW1YZAkt7p/ixqgCgFaC\n36RjqyiHUH5i1V0REHrLVQ3sYF+SOMS4HBdqyOVg3gda2d9aF2R2OCY2lJnZ\nR5JQ\r\n=ffto\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgZe88UcHyFrhQAcIRtTct9opPELzRJYkpbUtY11BIYAiEA8wyzsag/njy39rY3skd1JRsCF5twIbYVGY4DW6ET6k4="}],"size":2733,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-7.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_7.0.1_1575620368053_0.12577594869930708"},"_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":1575620368254,"_cnpm_publish_time":1575620368254,"dist-tags":{"latest":"11.0.0"}}