{"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":"http://registry-npm.ywwl.com/find-up-sync/download/find-up-sync-1.0.0.tgz","integrity":"sha512-sOfRjNbc98moo6QcesE69n4IYHXk5b4pGs82piNsA0afOVNlsOpuFpzqOGslHzl2OutmalXfH98+FmLbmbZbJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCAcjMedpO0N9JgecSHyHkCE0jpFcESpRP15xsJgXM8AiEAiby20Bb3nU+CYSpYadz6XGRUfS/hxXC7Knqs1o8dMx0="}],"size":1771,"noattachment":false,"key":"/find-up-sync/-/find-up-sync-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-up-sync-1.0.0.tgz_1463049529738_0.17875879048369825"},"directories":{},"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","publish_time":1463049532389,"_cnpm_publish_time":1463049532389,"dist-tags":{"latest":"1.0.2"}}