{"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://registry-npm.ywwl.com/find-parent-dir/download/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="}],"size":2310,"noattachment":false,"key":"/find-parent-dir/-/find-parent-dir-0.3.1.tgz"},"_npmUser":{"name":"thlorenz","email":"thlorenz10@gmail.com"},"directories":{},"maintainers":[{"name":"thlorenz","email":"thlorenz10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-parent-dir_0.3.1_1621010853803_0.8575633133968164"},"_hasShrinkwrap":false,"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","publish_time":1621010853942,"_cnpm_publish_time":1621010853942,"dist-tags":{"latest":"0.3.1"}}