{"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.","license":"MIT","version":"2.0.5","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.1"},"devDependencies":{"@types/node":"^18.19.70","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"find-up-json@2.0.5","gitHead":"b1d1818cca085dd232aafe412f8017a039d73769","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-1zZZUfD1GOOEEd1AqwbRmCkCCv1O9t0vOpCYgmzfJqKty8WKaKlDyxWej8Aew+vI5lvDiTviaQuaVuu6GzlHzQ==","shasum":"718b666ca3c2e12629ad0f60a31c6fe624f4a529","tarball":"http://registry-npm.ywwl.com/find-up-json/download/find-up-json-2.0.5.tgz","fileCount":9,"unpackedSize":3911,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgwvSeluSdyvpvnzIwaPwb/m6f3KHh176vMj0qfSJ3QQIgBQexivQJJWNSxwT0E9ZdYHO92hqQN9VlkfSNkzRvU2o="}],"size":2168,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.5.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/find-up-json_2.0.5_1736707473956_0.8675570473268379"},"_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 find-up-json\n```\n\n## Usage\n\n```ts\nimport findUp from 'find-up-json';\n\n// Let's find the nearest `package.json` file\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":1736707474147,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736707474147,"dist-tags":{"latest":"2.0.5"}}