{"name":"read-pkg-up","version":"9.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.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.2.0","read-pkg":"^7.0.0","type-fest":"^2.5.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.18.0","xo":"^0.45.0"},"gitHead":"85144a63e8bf93e235becfbad9c70fb3e6843223","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@9.0.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-7dNMZVru/9QQYnYYjboVqpaqT/e24MuhovJWjZHFBmUnCKVz5ZVFNLbd+fJCUsH7uIgkYbX9yQJvab2nc6P7Nw==","shasum":"2f03ba3e1430c56f8f0a4da73274c6d26c283b45","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-9.0.0.tgz","fileCount":5,"unpackedSize":6611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh25ZSCRA9TVsSAnZWagAAD6sQAIXqfXViRIoDCdxa604y\nwYOJZG8xAYQfMHkint+PekmzzmPQwF7DAHGv3LGaZNVqlOWrPd7NVMctshHZ\njDII9L9NgTUXkHsl6iitUtdAKtjJ4conJvdfw2JZbUR4BlZg5pdBQ8lj3iLm\nR+4MugdoyVoMtw9UjDzzyYmO2DKBiHkp3xTxBLVMZrAqAXxHujHtlhzOfPST\nfd1bt63wKaP0FbxFeclaK7GFU9bh3hb39SYDwu0acEEt56ExKuqwhuedGFa3\nt2GNpH+Cwa9ogIAM8Rc0LBXY1fxsl+k6KssAp87ymVLGwKw0yFGSUy8B5CQv\nk6hggsFISHbOtNXZ/hDfVE1YpTJZjKiYjdloVo+YmGnH5W/CasDEOCB1hX6o\nTmGnwPOxvBu0t0H4mP2l+zQu2SyWvLu0cp5EEY/dnWeqkFegtXR/zbedn1pX\ndPhvA+sHWmVCI1V4P04pY1FbutqmevdI+7M59L8ZJo6n2mzlwpYXDRCnGD9I\n8YnCJlfthImA3xQ/cT/NzT8Ml9GByHDD6CwtFEe2aTd3UaONr0AzxntPre7U\nELc2duAoaQL0rcLVzuFnLoh0z2jWNxIo9TOwir+XDxztl5GFle2pLbqAlFdN\nmEvmaIpVkJ2nXrKRZPT9h2n6YoqM2AU+jHgG1hL34ozGHpC4iFzeO6/Mq8iZ\nVHIL\r\n=I4UZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvbFbmpw9Toru1aHX3KT6tm8N4VapodGWBisevooeizAiEA8kuPqjijRAr1d09FKdUXwvfp//CPW+ELdpydN5Wh6ic="}],"size":2582,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-9.0.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.0.0_1634147603382_0.7987565110218926"},"_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":1634147603538,"_cnpm_publish_time":1634147603538,"dist-tags":{"latest":"11.0.0"}}