{"_id":"@cjser/read-pkg-up__v8_0_0","name":"@cjser/read-pkg-up__v8_0_0","dist-tags":{"latest":"8.0.0-cjser.2"},"versions":{"8.0.0-cjser.2":{"name":"@cjser/read-pkg-up__v8_0_0","version":"8.0.0-cjser.2","description":"Read the closest package.json file","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=12"},"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":"^5.0.0","type-fest":"^1.0.1","@cjser/read-pkg__v6_0_0":"6.0.0-cjser.2"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"8.0.0","cjserVersion":2,"original":{"name":"read-pkg-up","version":"8.0.0","exports":"./index.js","repository":"sindresorhus/read-pkg-up","dependencies":{"find-up":"^5.0.0","read-pkg":"^6.0.0","type-fest":"^1.0.1"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/read-pkg-up__v8_0_0@8.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-lk+/UGM9+L5YI8mwS++1YwqLTnpKzUQeoPIh7/juLrz+/mYXrzUdVm7tx3GH0u9DOmVqTH8a8qViJldScvR8tg==","shasum":"a284e3f1f4e811a11bd87942711bdbbd48118c57","tarball":"https://registry.npmjs.org/@cjser/read-pkg-up__v8_0_0/-/read-pkg-up__v8_0_0-8.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":10335,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDiARN6c3ZMh0QP1WgYEV59weMQz+sj1z+HOkqf1HxA1gIhANuR6fOj50Dktp6mhxA9stTdyP675DG9XxzDzCmlGY2d"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/read-pkg-up__v8_0_0_8.0.0-cjser.2_1778159766924_0.7885678401150067"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:16:06.748Z","8.0.0-cjser.2":"2026-05-07T13:16:07.114Z","modified":"2026-05-07T13:16:07.363Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Read the closest package.json file","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"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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```\n$ npm install read-pkg-up\n```\n\n## Usage\n\n```js\nimport {readPackageUpAsync} from 'read-pkg-up';\n\nconsole.log(await readPackageUpAsync());\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### readPackageUpAsync(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: `string`\\\nDefault: `process.cwd()`\n\nDirectory 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## read-pkg-up for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of read-pkg-up and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-read-pkg-up?utm_source=npm-read-pkg-up&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/read-pkg-up\n","readmeFilename":"readme.md","_rev":"1-3aad0990f2a250c90800eb8137236d83"}