{"maintainers":[{"name":"anonymous","email":"thlorenz10@gmail.com"}],"keywords":["find","parent","dir","root","resolve","walk"],"dist-tags":{"latest":"0.3.1"},"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"description":"Finds the first parent directory that contains a given file or directory.","readme":"# find-parent-dir [![build status](https://secure.travis-ci.org/thlorenz/find-parent-dir.png)](http://travis-ci.org/thlorenz/find-parent-dir)\n\nFinds the first parent directory that contains a given file or directory.\n\n    npm install find-parent-dir\n\n```js\n// assuming this is called from a file in a subdirectory of /myprojects/foo which contains .git directory\nvar findParentDir = require('find-parent-dir');\n\nfindParentDir(__dirname, '.git', function (err, dir) {\n  // has err if some file access error occurred\n  console.log(dir); // => /myprojects/foo/\n  \n  // if parent dir wasn't found, dir is null\n})\n\n// Same using `sync` method\nvar dir;\ntry { \n  dir = findParentDir.sync(__dirname, '.git');\n  console.log(dir); // => /myprojects/foo/\n  // if parent dir wasn't found, dir is null\n} catch(err) {\n  console.error('error', err); \n}\n```\n","repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"users":{"fabien0102":true,"alimaster":true,"lgomez":true,"usex":true},"bugs":{"url":"https://github.com/thlorenz/find-parent-dir/issues"},"license":"MIT","versions":{"0.1.0":{"name":"find-parent-dir","version":"0.1.0","description":"Finds the first parent directory that contains a given file or directory.","main":"find-parent-dir.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"homepage":"https://github.com/thlorenz/find-parent-dir","dependencies":{},"devDependencies":{"tap":"~0.4.3"},"keywords":["find","parent","dir","root","resolve","walk"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"_id":"find-parent-dir@0.1.0","dist":{"shasum":"101b8eca4fb27b94263187a2fadc56b95caa87d4","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/find-parent-dir/-/find-parent-dir-0.1.0.tgz","integrity":"sha512-EFR3+F3hYBSGnZZuC7dQIlkIbPXdsFz1+dRMjNRrabkEK5WCZbbNFFuh/pbHKDnSc/THW98LU+kSTRIbvUecYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWeo+DZhad4w5wgrOMVhls5YllT5x/hodAyht2TP/UnAiAh0rab6qb/Xetnx7YfdrE3ydQfQksQuQ0yRO/mCFse7w=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"anonymous","email":"thlorenz@gmx.de"},"maintainers":[{"name":"anonymous","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.0":{"name":"find-parent-dir","version":"0.2.0","description":"Finds the first parent directory that contains a given file or directory.","main":"find-parent-dir.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"homepage":"https://github.com/thlorenz/find-parent-dir","dependencies":{},"devDependencies":{"tap":"~0.4.3"},"keywords":["find","parent","dir","root","resolve","walk"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"bugs":{"url":"https://github.com/thlorenz/find-parent-dir/issues"},"_id":"find-parent-dir@0.2.0","dist":{"shasum":"445c637d9824a57ec6b8f3877f24f29517f19761","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/find-parent-dir/-/find-parent-dir-0.2.0.tgz","integrity":"sha512-PIUey+AylfKvWgbdV0mgYUTkTWqcfL0HTBzsIYsrGUIYU2TEWYDapXJUCXPOk6JIXCRs8HyBfpWriFecvyXBAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIwurIgqBlQPU47Tpm0rWrf9Lpz4oJGLcG/fLjJgv3vAiEA+JzBTEssvY8/gAUlFd1fnnmbI+7PiVJOiLHpBTA6sSs="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"anonymous","email":"thlorenz@gmx.de"},"maintainers":[{"name":"anonymous","email":"thlorenz@gmx.de"}],"directories":{}},"0.2.1":{"name":"find-parent-dir","version":"0.2.1","description":"Finds the first parent directory that contains a given file or directory.","main":"find-parent-dir.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"homepage":"https://github.com/thlorenz/find-parent-dir","dependencies":{},"devDependencies":{"tap":"~0.4.3"},"keywords":["find","parent","dir","root","resolve","walk"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"bugs":{"url":"https://github.com/thlorenz/find-parent-dir/issues"},"_id":"find-parent-dir@0.2.1","dist":{"shasum":"d5cb7b0b4de8246530b62f8e5e9776c724bdd8a5","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/find-parent-dir/-/find-parent-dir-0.2.1.tgz","integrity":"sha512-RdJ11PRofcjzd7ufYG6LusDoDTqWzi4W1Jtsfgcgbf8b9up4xB3zpCmozXBrjEcaqoEa5WZiXoH9LECtfISarA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFxN/PKFwOkJeUGJAf/Fy5vSDMXm572FvkYBdUqykwRIAiEAjHl8phUIV8nEGqDH4rL9pfNNz0i7bkFhSl52t0ckZCM="}]},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"anonymous","email":"thlorenz@gmx.de"},"maintainers":[{"name":"anonymous","email":"thlorenz@gmx.de"}],"directories":{}},"0.3.0":{"name":"find-parent-dir","version":"0.3.0","description":"Finds the first parent directory that contains a given file or directory.","main":"find-parent-dir.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"homepage":"https://github.com/thlorenz/find-parent-dir","dependencies":{},"devDependencies":{"tap":"~0.4.3"},"keywords":["find","parent","dir","root","resolve","walk"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"bugs":{"url":"https://github.com/thlorenz/find-parent-dir/issues"},"_id":"find-parent-dir@0.3.0","dist":{"shasum":"33c44b429ab2b2f0646299c5f9f718f376ff8d54","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/find-parent-dir/-/find-parent-dir-0.3.0.tgz","integrity":"sha512-41+Uo9lF5JNGpIMGrujNKDuqH9ofU2ISJ1XCZPLIN/Yayql599PtA0ywYtlLMYmJcSPkr4uAF14wJmKlW2Fx3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmiyRTcOsUNpJWO23gUm95KhLQX49SNz602FAtHKu7jgIhAJWK6KEOsX7p3EgFsO3Vt7BiRerX7BnJV9LyUE7tvJDT"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"anonymous","email":"thlorenz@gmx.de"},"maintainers":[{"name":"anonymous","email":"thlorenz@gmx.de"}],"directories":{}},"0.3.1":{"name":"find-parent-dir","version":"0.3.1","description":"Finds the first parent directory that contains a given file or directory.","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/find-parent-dir.git"},"homepage":"https://github.com/thlorenz/find-parent-dir","dependencies":{},"devDependencies":{"tap":"~0.4.3"},"keywords":["find","parent","dir","root","resolve","walk"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"http://thlorenz.com"},"license":"MIT","engine":{"node":">=0.6"},"gitHead":"cb72631daed3c4bb21af371ce29247fc95d5a2d4","bugs":{"url":"https://github.com/thlorenz/find-parent-dir/issues"},"_id":"find-parent-dir@0.3.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==","shasum":"c5c385b96858c3351f95d446cab866cbf9f11125","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/find-parent-dir/-/find-parent-dir-0.3.1.tgz","fileCount":7,"unpackedSize":5164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnqmmCRA9TVsSAnZWagAADwgP/3XsuzqTTbDLOGjqlSEh\nKE7J/OsHcSLCr0T1l4lCQSC/XW0voJBEE8v5VRdkC3Wi4MpdqgVvEB/p9Dgw\nOOr0QU1j070CVRlEhsP2jw2w07CTQxac/bXq36esxBiCtVsl5SFn4+fmHtHE\n4zYGYmgGcho8MH4GwNEuagb7oOuSfn/i6mSDbXda9UtyWMk7fBHoYtPg18PK\nrMKZexdcv9xazSkEMvD2XSk8xuFqgkaboH4JMnCXiWKcveWPsX306H7f/dB4\naVkXEjoTcnd1ZClst8TP9xDuuyBAY1RIFFCs9STXI80r2LlUYAiY//CX6J+e\nloi6tIAGcdXMJ5APMYU/abjM636N9mp2lSuFSrc/2QKrgbk7Y1BT/WxabBFf\nVvz9RQazNyCcETRXDAD//JxilYPj/h5ARBUcxLflGGO7v3Je7EwXHfTop3Ar\ne/n3oGN6Ti31J5NqCvfDrWEmy+wuZ/usZ8xDKnn++bDgNhnf4uDh5u0QhK6u\niPnVCQk1/qGaPFjPAGobs+3fywgi0AFRTR6gi42v7DQlKBgEsy5s+OL5fVuw\nMCrgrnZe0E170zD06/61DdJb+kZUcT9euVOYPmK+fAyShF4Abg7U9hRKm4jK\ntMnOTB8Y7/wD3zmqaSbLRMCU9hKmLUeAOoJo7SEfH7/ZsxChSxr7j03fmujj\nYsu1\r\n=+1ug\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhgXX3FWxnX8qanVnxhszlPL6k2BbST1Rt/w1PL5N4/AiEAzpz05lJhNT8oY9S74NM5rpEe+Sw8uhZUVEpWuPhXiT8="}]},"_npmUser":{"name":"anonymous","email":"thlorenz10@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"thlorenz10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-parent-dir_0.3.1_1621010853803_0.8575633133968164"},"_hasShrinkwrap":false}},"name":"find-parent-dir","time":{"modified":"2022-06-18T00:55:36.156Z","created":"2013-05-25T22:32:33.214Z","0.1.0":"2013-05-25T22:32:34.501Z","0.2.0":"2014-01-27T20:07:50.035Z","0.2.1":"2014-02-03T04:07:38.307Z","0.3.0":"2014-03-29T16:36:11.160Z","0.3.1":"2021-05-14T16:47:33.942Z"},"readmeFilename":"README.md","homepage":"https://github.com/thlorenz/find-parent-dir"}