{"_id":"find-up-sync","_rev":"5-3bece9dbffdc7876198a73fa44d894c5","name":"find-up-sync","description":"Find a file by walking up parent directories (barebones implementation, no dependencies)","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"find-up-sync","version":"1.0.0","description":"Find a file by walking up parent directories (barebones implementation)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/paulovieira/find-up-sync.git"},"keywords":["path","walking","walk","dir","directory","folder","parents","parent","resolve","package","look","look-up","findup","find-up","find"],"author":{"name":"Paulo Vieira"},"license":"MIT","bugs":{"url":"https://github.com/paulovieira/find-up-sync/issues"},"homepage":"https://github.com/paulovieira/find-up-sync#readme","gitHead":"6abf44eeec88eeca29fb203fb07fd69319272f04","_id":"find-up-sync@1.0.0","_shasum":"e41014aab63e502d09330dcb605a29e7000c2fa8","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"paulovieira","email":"paulovieira@gmail.com"},"maintainers":[{"name":"paulovieira","email":"paulovieira@gmail.com"}],"dist":{"shasum":"e41014aab63e502d09330dcb605a29e7000c2fa8","tarball":"https://registry.npmjs.org/find-up-sync/-/find-up-sync-1.0.0.tgz","integrity":"sha512-sOfRjNbc98moo6QcesE69n4IYHXk5b4pGs82piNsA0afOVNlsOpuFpzqOGslHzl2OutmalXfH98+FmLbmbZbJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCAcjMedpO0N9JgecSHyHkCE0jpFcESpRP15xsJgXM8AiEAiby20Bb3nU+CYSpYadz6XGRUfS/hxXC7Knqs1o8dMx0="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-up-sync-1.0.0.tgz_1463049529738_0.17875879048369825"}},"1.0.1":{"name":"find-up-sync","version":"1.0.1","description":"Find a file by walking up parent directories (barebones implementation)","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/paulovieira/find-up-sync.git"},"keywords":["path","walking","walk","dir","directory","folder","parents","parent","resolve","package","look","look-up","findup","find-up","find"],"author":{"name":"Paulo Vieira"},"license":"MIT","bugs":{"url":"https://github.com/paulovieira/find-up-sync/issues"},"homepage":"https://github.com/paulovieira/find-up-sync#readme","gitHead":"c281e8a0ceb49b760b3322974af155841e7c5758","_id":"find-up-sync@1.0.1","_shasum":"38e4cdb9a40c1a085649e70ba6359cab9dc37d94","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"paulovieira","email":"paulovieira@gmail.com"},"maintainers":[{"name":"paulovieira","email":"paulovieira@gmail.com"}],"dist":{"shasum":"38e4cdb9a40c1a085649e70ba6359cab9dc37d94","tarball":"https://registry.npmjs.org/find-up-sync/-/find-up-sync-1.0.1.tgz","integrity":"sha512-JcnLu4L4aC31y/5xY8MeGOiBdky2Nlo878QX1wXIhIhLDIMu5Zc6AQSKlYkA+bYmIpeKYzZ4J1+O5ez+45pBSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgcjpeTqWyyvYTJuliv8NLtt2x90YHRRzxUNR51gKISgIgaC4F3EoCKHGAjmR1a1uON6LOGI7jov9IlbhZ9sM63h4="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-up-sync-1.0.1.tgz_1463051245734_0.30779307265765965"}},"1.0.2":{"name":"find-up-sync","version":"1.0.2","description":"Find a file by walking up parent directories (barebones implementation, no dependencies)","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/paulovieira/find-up-sync.git"},"keywords":["path","walking","walk","dir","directory","folder","parents","parent","resolve","package","look","look-up","findup","find-up","find"],"engines":{"node":">=0.10.0"},"author":{"name":"Paulo Vieira"},"license":"MIT","bugs":{"url":"https://github.com/paulovieira/find-up-sync/issues"},"homepage":"https://github.com/paulovieira/find-up-sync#readme","gitHead":"7ea401f346d6ce3340ad9e9afb12d8c53d42e138","_id":"find-up-sync@1.0.2","_shasum":"e3ad6b8f7e2524bd051a1068a5b561926b935986","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"paulovieira","email":"paulovieira@gmail.com"},"maintainers":[{"name":"paulovieira","email":"paulovieira@gmail.com"}],"dist":{"shasum":"e3ad6b8f7e2524bd051a1068a5b561926b935986","tarball":"https://registry.npmjs.org/find-up-sync/-/find-up-sync-1.0.2.tgz","integrity":"sha512-6MAzVfLnFaeS5N56jr1+zMlQBejLvwMaw3/9/a7wNC6ohTr1e5SeB2tH4CEV0SH4Q1io+Mz/bvl07IDrfAjEZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApttcllQfmxE/3qgxonG0ZQOkjOmYcCXT57krabpzakAiBcKwjYW2uYtDK0DxwE0AcX0Z8Nr+a0vFEi4q8s+SG1CQ=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/find-up-sync-1.0.2.tgz_1463051608743_0.8579705553129315"}}},"readme":"# find-up-sync\n\n### Description \nFind a file by walking up parent directories (barebones implementation, no dependencies). \n\nUseful to automatically find the path to configuration files that should exist in a predefined directory. See example below.\n\n### Install\n\n```sh\nnpm install --save find-up-sync\n```\n\n### Example\n\nAssume your filesystem has a structure like this:\n```\n/\n└── home\n    └── pvieira\n        └── my-app\n            ├── config\n                └── email-key.txt\n            └── xyz\n                └── abc\n                    └── find-key.js\n```\n\nWe want to obtain the path to `config/email-key.txt` from any module in the application, without using relative paths or any other dependency specific to the application (such as a global `__rootDir` variable).\n\nThe `find-key.js` module will find the path:\n```js\nvar FindUp = require('find-up-sync');\nvar path = FindUp('config/email-key.txt');\n\n// path === '/home/pvieira/my-app/config/email-key.txt'\n```\n\n### Related modules\n\n- `find-up` - https://www.npmjs.com/package/find-up\n- `look-up` - https://www.npmjs.com/package/look-up\n- `find-config` - https://www.npmjs.com/package/find-config\n\n","maintainers":[{"name":"paulovieira","email":"paulovieira@gmail.com"}],"time":{"modified":"2022-06-18T00:56:30.166Z","created":"2016-05-12T10:38:52.389Z","1.0.0":"2016-05-12T10:38:52.389Z","1.0.1":"2016-05-12T11:07:28.403Z","1.0.2":"2016-05-12T11:13:30.429Z"},"homepage":"https://github.com/paulovieira/find-up-sync#readme","keywords":["path","walking","walk","dir","directory","folder","parents","parent","resolve","package","look","look-up","findup","find-up","find"],"repository":{"type":"git","url":"git+https://github.com/paulovieira/find-up-sync.git"},"author":{"name":"Paulo Vieira"},"bugs":{"url":"https://github.com/paulovieira/find-up-sync/issues"},"license":"MIT","readmeFilename":"readme.md"}