{"name":"read-pkg-up","version":"5.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"},"keywords":["json","read","parse","file","fs","graceful","load","pkg","package","find","up","find-up","findup","look-up","look","search","match","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"find-up":"^3.0.0","read-pkg":"^5.0.0"},"devDependencies":{"ava":"^1.3.1","xo":"^0.24.0"},"gitHead":"d8d5100d91f878b1c87c7726938b68fdc7fa9566","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@5.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-XBQjqOBtTzyol2CpsQOw8LHV0XbDZVG7xMMjmXAJomlVY03WOBRmYgDJETlvcg0H63AJvPRwT7GFi5rvOzUOKg==","shasum":"b6a6741cb144ed3610554f40162aa07a6db621b8","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-5.0.0.tgz","fileCount":4,"unpackedSize":4320,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJck6eECRA9TVsSAnZWagAAJIkP/j9ESn3dVVoqjB1GrtQO\niFaswqjH1I17nzfWp52JQE1tx4m6UflbReNSnnMAj3z3Jyq1343pKT4bnGIP\nY8yIa1exhqWa7DzwG1o+c9YVklUxJ1HVHdb6/88LFGaAiagq9cilVuxO5s4q\nGS6u/eDRO1Lx+gGxb5ifdMeYOddd+ds6EtSVKHZFUGjgpV4ZH1pY+sBP7XlE\nVEP98mPHE+xRx31NOvodpzS6f4SSf6wb5oQDejzC2kAPTzHaOL6qo4WQe9xS\nh42FciDw6PZgcC9qykTVUIwqD9rTeeomzpwcu7qaDZYkNCj0U4aebji9Q4yn\nN2s9Y4/uuP+UT5UZYGXJlgh/5OK07uWNyXwhbWaut806xHbKGui2M0Dy6g+O\nbYxpiNVicwMrPJvkWKxL+6nIjr2QefgKbwk8lYAPTWZCwnLIRpDiD/r0tyWH\nlj2N/GgM16YQEKib2LZTSXMLpmoaxlD/rJ/0olgmLa9pKfMKof20FyAYw4Q7\nvIjGUpBtseRo347T0kq0HdwvVTg2L8uqxCu5TuOhv9k3Le/x98xLJx6IhG+w\niYPr0aNPSWcOH8ktFCMiFoNfdT2ym4mr0hJxa3aTC+YnRYyxnHZOzMZLIr7S\n2/Oyns2bCG7djeRjOiJPUdagIVWizH8xmYT7T+7yBG8J5msHT4IERbUDAclp\nJFaf\r\n=xFVx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDexwDnIV1i+ztXpByJJapJ0MpzeIEWLpQFc1PUTa5HnQIgZ9KY/YN8oTJUCqWsO9pIOTqjKR6YLgDymJBXY5h/2EU="}],"size":2054,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_5.0.0_1553180548183_0.5027212000448185"},"_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":1553180548563,"_cnpm_publish_time":1553180548563,"dist-tags":{"latest":"11.0.0"}}