{"name":"read-pkg-up","version":"7.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 && 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":"83476adffccaf5ae0e65dab69266032cec04ae9e","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.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-t2ODkS/vTTcRlKwZiZsaLGb5iwfx9Urp924aGzVyboU6+7Z2i6eGr/G1Z4mjvwLLQV3uFOBKobNRGM3ux2PD/w==","shasum":"3f3e53858ec5ae5e6fe14bc479da0a7c98f85ff3","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-7.0.0.tgz","fileCount":5,"unpackedSize":6635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjaaWCRA9TVsSAnZWagAAxOcP/07RalCAL49v9CAQ0vh/\nIweQmIUD94G9fQTy3Clfs5huBCWiw+8Z2HYoxRj9ie/FUpYT/7btqzwwaQvV\n/qgaL1AHbWaZQlyvOJnHZm1LFpqDTNgts+1ADlEP1gP09MRtPDg6l86//Qrg\nVb3IcJdGJxJzhDYDVya0CiMNZkSWpcPWc4/QxMLOgHa8Aqd/ZPgcgPbifSVQ\nrjApwPAOdUD1H9/cApBJImRqzzsA/1++S9Mt01HvGNmw1CFIJoKkG7Vqpgra\nKUgmoy9I1h81IEV/otPwv59oHCk5l0l43U1O7/hgXnCQ6vDsTsuSUb5thyBE\nPyx0cX8MF59DeYbZ3NL9LqxQ9oMsap3rkMC3Tp0Rx8P77d8i/6NBICGYpiDh\nUOoTlUNnhYz5hXlyK7oAQ4SnDkIaJl99qNK3KM/96VE+IqiG9THi4U1G5nGn\nZsrQAdE5IVpHowDmVmU9wIpRdtxJydt9pXX1+wD1gBY9paf7MCNf9dHwoSKQ\nlZBShp4EHOVU4svFrkMB9Od8plz6YIVtpTFP0HPxau9eeuD70sK8o1u2X06v\noGrmvK14d31Oj/+td9XdseAOI+98zXBuCdzhvma1O0BQM+rbVz+DR8E4kAGT\n4kaX21I8f0kOOk58Mbu5Aaun8p7DUmB34FMGelcaKCf0iJYh7LQ+iMRY7lv2\nLKdy\r\n=Pgo7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZ4DLkVwhiJi829s7y8CHM57n+gVQFgn/yWUj1Va/m4AiAxjqbLkJe4joU3fxQlr15OOhN+0Pjzxi5Han5Mp+MaVA=="}],"size":2716,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-7.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_7.0.0_1569564310071_0.6639585787913269"},"_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":1569564310277,"_cnpm_publish_time":1569564310277,"dist-tags":{"latest":"11.0.0"}}