{"name":"find-up-json","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/find-up-json.git"},"description":"Find, read and parse the first matching file found walking the filesystem upwards.","version":"2.0.3","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["find","up","json","read","parse"],"dependencies":{"find-up-path":"^1.0.0"},"devDependencies":{"@types/node":"^20.11.24","fava":"^0.2.1","tsex":"^3.2.0","typescript":"^5.3.3"},"_id":"find-up-json@2.0.3","gitHead":"433a40a5956a3df13257dc20e8ff10ecf9fd2e65","bugs":{"url":"https://github.com/fabiospampinato/find-up-json/issues"},"homepage":"https://github.com/fabiospampinato/find-up-json#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-1xbSTscrGzJ2UdAe65JbBFqmI3ArVPfobk9XREl4u243SO8ucnG+tm92BTliGattliVKc15XT8aemWhcmypz/g==","shasum":"25e621349f47b18105832038757fd210ad56e860","tarball":"http://registry-npm.ywwl.com/find-up-json/download/find-up-json-2.0.3.tgz","fileCount":16,"unpackedSize":6074,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCi6ip+9bkHSqBlqye/id0xAVmi0/2qAztVpF0Xvoa0awIhANL+2cE4S2PfxQWWXuL7v9GMFMSppTBGoISR27F7LujE"}],"size":2853,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.3.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up-json_2.0.3_1709517475757_0.832412960607462"},"_hasShrinkwrap":false,"readme":"# Find Up JSON\n\nFind, read and parse the first matching file found walking the filesystem upwards.\n\nCompared to alternatives this library is *tiny*, it has no dependencies, and it can be bundled without problems.\n\n## Install\n\n```sh\nnpm install --save find-up-json\n```\n\n## Usage\n\n```ts\nimport findUp from 'find-up-json';\n\nconst pkg = findUp ( 'package.json' );\n\n// =>\n// {\n//   path: '/path/to/found/package.json',\n//   buffer: BufferContentOfFile,\n//   content: {\n//     // Result of JSON-parsing the content of the file\n//     \"name\": \"something...\"\n//     // ...\n//   }\n// }\n```\n\n## License\n\nMIT © Fabio Spampinato\n","publish_time":1709517475922,"_cnpm_publish_time":1709517475922,"dist-tags":{"latest":"2.0.5"}}