{"_id":"find-up-json","_rev":"3757941","name":"find-up-json","description":"Find, read and parse the first matching file found walking the filesystem upwards.","dist-tags":{"latest":"2.0.5"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2025-03-18T07:12:32.000Z","created":"2021-05-12T13:41:29.803Z","2.0.5":"2025-01-12T18:44:34.147Z","2.0.4":"2024-03-12T01:54:13.101Z","2.0.3":"2024-03-04T01:57:55.922Z","2.0.2":"2023-02-20T16:31:26.583Z","2.0.1":"2023-01-13T14:52:22.501Z","2.0.0":"2022-04-07T23:21:12.722Z","1.0.1":"2021-07-12T11:03:03.868Z","1.0.0":"2021-05-12T13:41:29.803Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/find-up-json.git"},"versions":{"2.0.5":{"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":{"shasum":"718b666ca3c2e12629ad0f60a31c6fe624f4a529","size":2168,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-2.0.5.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/find-up-json_2.0.5_1736707473956_0.8675570473268379"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-12T18:44:34.147Z","publish_time":1736707474147,"_source_registry_name":"default","_cnpm_publish_time":1736707474147},"2.0.4":{"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.4","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.4","gitHead":"ff0b996dbaea391432b68e0936526835b45267da","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":{"shasum":"b35fb65270c6dca447dcb48e74e7ab875389eeff","size":2858,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-2.0.4.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.4_1710208452905_0.9635784979587794"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-12T01:54:13.101Z","publish_time":1710208453101,"_source_registry_name":"default","_cnpm_publish_time":1710208453101},"2.0.3":{"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":{"shasum":"25e621349f47b18105832038757fd210ad56e860","size":2853,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/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,"_cnpmcore_publish_time":"2024-03-04T01:57:55.922Z","publish_time":1709517475922,"_source_registry_name":"default","_cnpm_publish_time":1709517475922},"2.0.2":{"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":{"shasum":"e8e4419fe57d9a338576133e8835214eda635796","size":2795,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/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,"_cnpmcore_publish_time":"2023-02-20T16:31:26.583Z","publish_time":1676910686583,"_cnpm_publish_time":1676910686583},"2.0.1":{"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.1","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":"npm run clean && npm run compile && npm run test"},"keywords":["find","up","json","read","parse"],"devDependencies":{"@types/node":"^17.0.23","fava":"^0.0.6","tiny-dirname":"^1.0.0","tsex":"^1.1.0","typescript":"^4.6.3"},"gitHead":"6fde73adc9a549c5182816341eb283eec44e04c1","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.1","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"15446f3f9be429ffbe17cb50f3b3769fc67390fb","size":2831,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-2.0.1.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.1_1673621542345_0.8813267268734044"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-13T14:52:22.501Z","publish_time":1673621542501,"_cnpm_publish_time":1673621542501},"2.0.0":{"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.0","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":"npm run clean && npm run compile && npm run test"},"keywords":["find","up","json","read","parse"],"devDependencies":{"@types/node":"^17.0.23","fava":"^0.0.6","tiny-dirname":"^1.0.0","tsex":"^1.1.0","typescript":"^4.6.3"},"gitHead":"11c7adcd8cfa660b09a638dd7ce5686ebe13a5c5","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.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"52bf2395e577a6704adcea7fde001bf213c119ba","size":2610,"noattachment":false,"key":"/find-up-json/-/find-up-json-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-2.0.0.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.0_1649373672549_0.34776820155549726"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-07T23:21:20.234Z","publish_time":1649373672722,"_cnpm_publish_time":1649373672722},"1.0.1":{"name":"find-up-json","description":"Find, read and parse the first matching file found walking the filesystem upwards.","version":"1.0.1","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile"},"bugs":{"url":"https://github.com/fabiospampinato/find-up-json/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/find-up-json.git"},"keywords":["find","up","json","read","parse"],"dependencies":{},"devDependencies":{"@types/node":"^12.7.2","rimraf":"^3.0.0","typescript":"^3.5.3","typescript-transform-export-interop":"^1.0.2"},"gitHead":"e88dc4b312c1131396c6de400872ebf3b8db85e6","homepage":"https://github.com/fabiospampinato/find-up-json#readme","_id":"find-up-json@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"shasum":"777701e352b23dafc176e1a7bbdc2a18e838d676","size":2938,"noattachment":false,"key":"/find-up-json/-/find-up-json-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-1.0.1.tgz"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up-json_1.0.1_1626087783765_0.6231959728178096"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T11:35:49.545Z","publish_time":1626087783868,"_cnpm_publish_time":1626087783868},"1.0.0":{"name":"find-up-json","description":"Find, read and parse the first matching file found walking the filesystem upwards.","version":"1.0.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist","compile":"tsc --skipLibCheck && tstei","compile:watch":"tsc --skipLibCheck --watch","prepublishOnly":"npm run clean && npm run compile"},"bugs":{"url":"https://github.com/fabiospampinato/find-up-json/issues"},"license":"MIT","author":{"name":"Fabio Spampinato","email":"spampinabio@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/find-up-json.git"},"keywords":["find","up","json","read","parse"],"dependencies":{},"devDependencies":{"@types/node":"^12.7.2","rimraf":"^3.0.0","typescript":"^3.5.3","typescript-transform-export-interop":"^1.0.2"},"gitHead":"e62c4265faf185eb8bfe612d84d578fde2daed02","homepage":"https://github.com/fabiospampinato/find-up-json#readme","_id":"find-up-json@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"dist":{"shasum":"366734711d0102e9792ba55765f0aa5f3e07a061","size":2952,"noattachment":false,"key":"/find-up-json/-/find-up-json-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up-json/download/find-up-json-1.0.0.tgz"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up-json_1.0.0_1620826889672_0.8263389155615433"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T11:35:48.697Z","publish_time":1620826889803,"_cnpm_publish_time":1620826889803}},"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","_attachments":{},"homepage":"https://github.com/fabiospampinato/find-up-json#readme","bugs":{"url":"https://github.com/fabiospampinato/find-up-json/issues"},"license":"MIT"}