{"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.2","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"],"devDependencies":{"@types/node":"^18.13.0","fava":"^0.1.0","tsex":"^2.1.0","typescript":"^4.9.5"},"gitHead":"5a1ec09ac0369fb392eeeb965024a3a3f9d2cf9c","bugs":{"url":"https://github.com/fabiospampinato/find-up-json/issues"},"homepage":"https://github.com/fabiospampinato/find-up-json#readme","_id":"find-up-json@2.0.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-UpHMIdzLzZNHZ0vXVv3kHr2vq2MWA+hA8zlzlPH5XMGyYisIr/7/dNm5AjWR3ae6Onie9a1zgtExOqix+8ESQw==","shasum":"e8e4419fe57d9a338576133e8835214eda635796","tarball":"http://registry-npm.ywwl.com/find-up-json/download/find-up-json-2.0.2.tgz","fileCount":13,"unpackedSize":6316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt1A/vBpoBTuBChubP1Z5M1oT6y5F0eBJX073uzc7xmAIgZ+IjYM9CVwVP/m3107JLHGcheTQ6mGUFVeUHViz+Bmo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj86BeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphxQ//dsgL9IoF0cP8F1zSPdC0LDG1F8JyoqfRn7Vxdjla+bm09Fdz\r\nRGvO7YcC8h8Kh0l7ZEpnOoy5P4MpcVaPypRgRMuTAWivWafAsE9KmMPEKIZD\r\nufOxUQeiIcW4PNnFeS0HmxXJ7zX31r+TCs2iItPk9y7OiZ3+7a1SrfdyjP07\r\np7hymfqii151JecJXUrZ1bA4ql2s5IoKRub0CFBnhVCYW3YrCTcM9fKcX2vf\r\nhzvJjW1ZixBgtVk8RBHwGWBZQp4uynCwnHXAyr7pnAt2Xd0Wg+qGmvwjQrlI\r\n4ggR8NKCC0yfN21D6bGWu8UnJ1k4HuSV5NS6rYC55JfeK1Zce4azPTbST4yU\r\nBww7na3yN+G7CvHNEjHk4dlfPsz5eskeZSs9U+/2rhdZ1j6PZ7fLoHxuRFSn\r\nkTJ70MNBvz+eIJ9r2FbREYJlOYVF57+cx/cPHzO/QP2ByzSeX6NQU36xFzTO\r\n5O6U2Dft1VN1XcZyeTgIzjGYfVYw7FTFBR5LlcK+GyjclIjaPbkQfHf3UAz5\r\nw+2sztCwxspSJCO/mFNlgcMA+dNzzsiQPkPvOMUSR+fOKFjIU3HwFeaUKD0s\r\nwasv4QOOVVSbX7huwDq6QPeFfMjRRLtipzvheZrRgY3TDZFXrY/PpK731S3f\r\nMp/j2m7g380GvG5v5yuj/Bpx6rzD/o25avI=\r\n=r1fQ\r\n-----END PGP SIGNATURE-----\r\n","size":2795,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.2.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.2_1676910686409_0.6358012095464116"},"_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":1676910686583,"_cnpm_publish_time":1676910686583,"dist-tags":{"latest":"2.0.5"}}