{"_id":"@cjser/read-package-up__v11_0_0","name":"@cjser/read-package-up__v11_0_0","dist-tags":{"latest":"11.0.0-cjser.2"},"versions":{"11.0.0-cjser.2":{"name":"@cjser/read-package-up__v11_0_0","version":"11.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":{"types":"./index.d.ts","require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=18"},"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":{"type-fest":"^4.6.0","@cjser/find-up-simple":"1.0.1-cjser.2","@cjser/read-pkg__v9_0_1":"9.0.1-cjser.2"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"xo":{"rules":{"@typescript-eslint/no-redundant-type-constituents":"off"}},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"11.0.0","cjserVersion":2,"original":{"name":"read-package-up","version":"11.0.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/read-package-up","dependencies":{"find-up-simple":"^1.0.0","read-pkg":"^9.0.0","type-fest":"^4.6.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/read-package-up__v11_0_0@11.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-7uRn+YGptMwb/c84RTc0Kt7OvndkkmlFfSgJNIRxd5HQ3EdeQl7hBD7lMOqHxNxkg85mM9a7e0c71NhBnMEDLg==","shasum":"f7c26ed58878ec7e04374eaaeed4150f425fc29e","tarball":"https://registry.npmjs.org/@cjser/read-package-up__v11_0_0/-/read-package-up__v11_0_0-11.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":10172,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDpa75kOgM4wUL9p849onRPC+hjHcN7z6jMmxgmGpBcHAIhAPSzP0kRQGwBcrEhnpa9spRNdZQZNzOpnoZKYRVrPFRg"}]},"_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-package-up__v11_0_0_11.0.0-cjser.2_1778159761746_0.14477976768632295"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:16:01.605Z","11.0.0-cjser.2":"2026-05-07T13:16:01.890Z","modified":"2026-05-07T13:16:02.179Z"},"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-package-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-package-up\n```\n\n## Usage\n\n```js\nimport {readPackageUp} from 'read-package-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- [package-up](https://github.com/sindresorhus/package-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-package-up\n","readmeFilename":"readme.md","_rev":"1-245096b020962a117838f684e0165ea4"}