{"name":"read-pkg-up","version":"4.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":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"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":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"ecb07950755ab17f51d9dfda9b3048bb0b0c667e","bugs":{"url":"https://github.com/sindresorhus/read-pkg-up/issues"},"homepage":"https://github.com/sindresorhus/read-pkg-up#readme","_id":"read-pkg-up@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==","shasum":"1b221c6088ba7799601c808f91161c66e58f8978","tarball":"http://registry-npm.ywwl.com/read-pkg-up/download/read-pkg-up-4.0.0.tgz","fileCount":4,"unpackedSize":4188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ5ttCRA9TVsSAnZWagAAglMP/jRiEgJ7UlDVGS0SXKGr\nUhtSes+PHtQwOBskZyYFsUFM1mWinDU0kb8uH8zC/PsXM/iEt02AXrLUlq2K\nx0/YEOZYzm0NJLhqhBnq+m4QYYRehG/cUHTyMm1uHmCHayfR9Yythf67QuGo\nHtqTUFf2ejb/YfvJxDT8iycS/eOPVf9Dqr6CF2saRTB8e+O6WuZV3qxVGJIx\nGASomkuhvOzVjy1pgsS1tkp+J1SgSuICg++bsZQlzoRCv4eaiJcBu9nKJXpN\nWRdiBOiLge5IwiLvecjhIHPuyBhVz9sgtq8Oe47TCgcLohi1U3F3me0L2zcU\nDcooJTLiIKzGZ/ku3Bgc4RkQZj38pbNLdd/UmYi3Znswwf5gDqpeIhd2FYnB\nC1t6Td/ZteAZVeZk6WbWMgewqSZnUTaL/4RBv1E/ok3fqfm1IMyabOR+3kSu\n6XTt1Jav3cHIakzpr/6cjjvbaq/EqxzICcNFN0fEsVP1qaSkq/Q28b0pCSJH\nvKiOkD7gjflAr27In7ZOoUUSM5LqDhWRfZiWzkdE05TBRGW3RlWA9AoITKwD\nboyk89XZAdo1sABi0TmnMmZi4xGF5zISdUjpLuq/eY3Ymq+GtY4VLPt6m4Hp\nGpmqyWKsYEaiUlBUY70D6jT+skaUNyz357UCgvAO33KWjTrXj1xz+13Lu2JJ\nrWz4\r\n=/hGJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJBrVcpMZv+I+z6hh3D1j+tYv91t5u0u5J1moCq3xcTgIhAJGYuRfWsVfNs0lxe9g9vBqeDngnEHUs15JM3WEPVgyC"}],"size":2061,"noattachment":false,"key":"/read-pkg-up/-/read-pkg-up-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read-pkg-up_4.0.0_1529322348770_0.18746921137869332"},"_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":1529322348823,"_cnpm_publish_time":1529322348823,"dist-tags":{"latest":"11.0.0"}}