{"_id":"root-pkg-json","_rev":"1-499d34775f00adc1001e5ebbe13c3c7c","name":"root-pkg-json","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"root-pkg-json","version":"1.0.1","description":"Find the highest package.json, starting from from the current working directory.","license":"MIT","private":false,"author":{"name":"Connor White","email":"hello@connorwhite.dev","url":"https://connorwhite.dev"},"homepage":"https://connorwhite.dev/github/root-pkg-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/root-pkg-json.git"},"bugs":{"url":"https://github.com/bconnorwhite/root-pkg-json/issues"},"keywords":["root","pkg","package","json","package.json","ancestor","parent","top","workspace","monorepo","find"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","scripts":{"build":"auto build","release":"auto release"},"dependencies":{"locate-path":"^7.2.0"},"devDependencies":{"autorepo":"^0.1.10"},"gitHead":"1a61681b6be201d67c0b2c39fb56827b2eb35668","_id":"root-pkg-json@1.0.1","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Bge9OOQ0R3K9yPVLRMSmA4bKCpRhpl5EiSiG9iFa8+lk+DYMBNSyb5I0g6Ukm7Hy77SgiuW+ErGKzi1ddRA60w==","shasum":"f66837b4899a6bcb8a3408509c9c6d855dac0109","tarball":"https://registry.npmjs.org/root-pkg-json/-/root-pkg-json-1.0.1.tgz","fileCount":4,"unpackedSize":4782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCikcD35MK4WAwU+NxaONaKNlMOSDBBjfGL5Oq/u4f8qAIhAKwwrlNBxXYBvxYX3rxTpbE3it1WSIYv+1F8JP98vZtv"}]},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root-pkg-json_1.0.1_1690238597305_0.7215933821862814"},"_hasShrinkwrap":false},"1.0.2":{"name":"root-pkg-json","version":"1.0.2","description":"Find the highest package.json, starting from from the current working directory.","license":"MIT","private":false,"author":{"name":"Connor White","email":"hello@connorwhite.dev","url":"https://connorwhite.dev"},"homepage":"https://connorwhite.dev/github/root-pkg-json#readme","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/root-pkg-json.git"},"bugs":{"url":"https://github.com/bconnorwhite/root-pkg-json/issues"},"keywords":["root","pkg","package","json","package.json","ancestor","parent","top","workspace","monorepo","find"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","scripts":{"build":"auto build","prepack":"auto build","release":"auto release"},"dependencies":{"locate-path":"^7.2.0"},"devDependencies":{"autorepo":"^0.1.10"},"gitHead":"b120f62ae4f2c9ab8a8c8f0e1b4ed6b6042da121","_id":"root-pkg-json@1.0.2","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-2LsfkW3DrccDQ/YhnMl9FbF5jFjEzYWOknJlzfJJWQositFseVGuLlC1X2h9krzXySD/iv8O4X8MO5lkSf//PQ==","shasum":"d8eeb690ea7bcc6876b6e6871eb71b60cb5b09ea","tarball":"https://registry.npmjs.org/root-pkg-json/-/root-pkg-json-1.0.2.tgz","fileCount":4,"unpackedSize":4757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBTrR/R81Z6vyXmwW7eWCqpmW2QSgjxuoOIxk2q3K4sRAiEAwk6lKsGgG6E9RbASgNS0IkFJl3TdIANyfv6NbqE784g="}]},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/root-pkg-json_1.0.2_1690239729321_0.8742992985024849"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-24T22:43:17.304Z","1.0.1":"2023-07-24T22:43:17.469Z","modified":"2023-07-24T23:02:09.675Z","1.0.2":"2023-07-24T23:02:09.468Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Find the highest package.json, starting from from the current working directory.","homepage":"https://connorwhite.dev/github/root-pkg-json#readme","keywords":["root","pkg","package","json","package.json","ancestor","parent","top","workspace","monorepo","find"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/root-pkg-json.git"},"author":{"name":"Connor White","email":"hello@connorwhite.dev","url":"https://connorwhite.dev"},"bugs":{"url":"https://github.com/bconnorwhite/root-pkg-json/issues"},"license":"MIT","readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>root-pkg-json</h1>\n  <a href=\"https://npmjs.com/package/root-pkg-json\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/root-pkg-json.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/root-pkg-json\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/root-pkg-json.svg\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Find the highest package.json, starting from from the current working directory.</blockquote>\n\n<br />\n\n_If I should maintain this repo, please ⭐️_\n<a href=\"https://github.com/bconnorwhite/root-pkg-json\">\n  <img align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/root-pkg-json?label=%E2%AD%90%EF%B8%8F&style=social\">\n</a>\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n<a href=\"https://twitter.com/bconnorwhite\">\n  <img align=\"right\" alt=\"Twitter\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\">\n</a>\n\n---\n<!--END HEADER-->\n\n## Installation\n\n```sh\nnpm install root-pkg-json\n```\n\n```sh\nyarn add root-pkg-json\n```\n\n```sh\npnpm add root-pkg-json\n```\n\n```sh\nbun add root-pkg-json\n```\n\n## Usage\n```ts\nimport { rootPkgJSON } from \"root-pkg-json\";\n\n// Returns an absolute path to the root package.json\nconst pkgJSON = await rootPkgJSON(); // string | undefined\n```\n\n### Options\n```ts\ntype Options {\n  /**\n   * The directory to start searching from.\n   * \n   * @default process.cwd()\n   */\n  readonly cwd?: URL | string;\n};\n```\n\n<!--BEGIN FOOTER-->\n\n<br />\n\n<h2 id=\"dependencies\">Dependencies<a href=\"https://www.npmjs.com/package/root-pkg-json?activeTab=dependencies\"><img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/root-pkg-json.svg\"></a></h2>\n\n- [locate-path](https://www.npmjs.com/package/locate-path): Get the first path that exists on disk of multiple paths\n\n<br />\n\n<h3>Dev Dependencies</h3>\n\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n\n<br />\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/root-pkg-json.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\n<!--END FOOTER-->\n","readmeFilename":"README.md"}