{"name":"read-pkg-up","version":"9.1.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.20.0 || ^14.13.1 || >=16.0.0"},"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":"^6.3.0","read-pkg":"^7.1.0","type-fest":"^2.5.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.45.0"},"types":"./index.d.ts","gitHead":"1eed68d3bc9bd36449a1c6437d9fef33435bd2ea","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@9.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"integrity":"sha512-vaMRR1AC1nrd5CQM0PhlRsO5oc2AAigqr7cCrZ/MW/Rsaflz4RlgzkpL4qoU/z1F6wrbd85iFv1OQj/y5RdGvg==","shasum":"38ca48e0bc6c6b260464b14aad9bcd4e5b1fbdc3","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-9.1.0.tgz","fileCount":5,"unpackedSize":6629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAjkMCRA9TVsSAnZWagAAZMoQAJWxdWAKLNMdamHEAk4j\nCCUk6DgEnClbqTSO87NIQnq2ycy9bPadQ3qOjlR4GN25NK6LRXgnud9PTHcy\n/UlEIFUHLouW6R870XouFnkjIb8J2gySCH6BI/A5wDW+1adBUgBkitpCu6f/\nEVM4kAGkIqNKb0/FDKnoxAAJEju219IL9IDoMtCztlxvfwqZWehgofehTFCS\nxooCEqpOPGlhx4UFA/Q9AAJCMqZe6q7MO6oCyZCqmHASuxOZMhHUFQ6ko3Bi\nyPJ3jg6hQR9irjJCbuTs/uxIxdOiQ8oHV/bz5gJttp+m+YDJ4lBkuuOne51d\n3FA4jQINkh/FE++5nB1J+mz1sKSTFDo4GaxPecMW85nR3w/snIzUG3UzilOF\nGXouv8/J2sf9Qs1T+5Rmbs73EXFEhszn5ygHNmpbBtvkGZvI+wtDcUWfR4p3\nKsBxE0xhlu5io9sDefajoDi0H6pnLjZqWNmVbkjkVSdn8PTKPZBZgkLuGjAS\nQkJmb1FjQ/zi0RmOqziyJRm3IS26P3tUX81JQcn2iJf50j/Rz61rl4X+TCjv\nTrlXA0JmQUtmTwbKNj5G6XES/O/eA3geLnbwGkCs6VLTP8P9kOoNpCNfmmxl\npOgQZBN/wEMpzcOEdSfSmXEh5d4KgcOZMXWSsv7TLnFt1Q10S0XShV5KT9EY\nfxju\r\n=pWSW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0xGaAmFDs6zForNna52gsfHmlp2Si/iPENyYw8OfU/AiB9jdbZ3FnYLLjwnc8TpntCDHGhkFqGdfldaabDdS0gKg=="}],"size":2589,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-9.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_9.1.0_1644312844248_0.4375095477995894"},"_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":1644312844491,"_cnpm_publish_time":1644312844491,"dist-tags":{"latest":"11.0.0"}}