{"name":"findup-sync","description":"Find the first file matching a given pattern in the current directory or the nearest ancestor directory.","version":"2.0.0","author":{"name":"\"Cowboy\" Ben Alman","url":"http://benalman.com"},"repository":{"type":"git","url":"git+https://github.com/js-cli/node-findup-sync.git"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">= 0.10"},"scripts":{"lint":"jshint index.js test/support/index.js test/test.js","test":"npm run lint && mocha"},"dependencies":{"detect-file":"^1.0.0","is-glob":"^3.1.0","micromatch":"^3.0.4","resolve-dir":"^1.0.1"},"devDependencies":{"homedir-polyfill":"^1.0.1","is-absolute":"^1.0.0","jshint":"^2.9.5","mocha":"^3.5.0","normalize-path":"^2.1.1","resolve":"^1.4.0"},"keywords":["file","find","find-up","findup","glob","match","pattern","resolve","search"],"gitHead":"25a89c76e7af81859a3227f1247453a62c963cd9","bugs":{"url":"https://github.com/js-cli/node-findup-sync/issues"},"homepage":"https://github.com/js-cli/node-findup-sync#readme","_id":"findup-sync@2.0.0","_shasum":"9326b1488c22d1a6088650a86901b2d9a90a2cbc","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"cowboy","email":"cowboy@rj3.net"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"tkellen","email":"tyler@sleekcode.net"}],"dist":{"shasum":"9326b1488c22d1a6088650a86901b2d9a90a2cbc","tarball":"http://registry-npm.ywwl.com/findup-sync/download/findup-sync-2.0.0.tgz","integrity":"sha512-vs+3unmJT45eczmcAZ6zMJtxN3l/QXeccaXQx5cu/MeJMhewVfoWZqibRkOxPnmoR59+Zy5hjabfQc6JLSah4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEt3l9mukjEK8KmO3IAlNOcCKdi2WI+2H052kUuPRThiAiEAtuoMRIJSqV2M5IjAaDVWiyO2/clptyNY1+oS7Cc09VY="}],"size":2342,"noattachment":false,"key":"/findup-sync/-/findup-sync-2.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/findup-sync-2.0.0.tgz_1502136200361_0.6676592342555523"},"directories":{},"readme":"<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# findup-sync\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nFind the first file matching a given pattern in the current directory or the nearest ancestor directory.\n\nMatching is done with [micromatch][micromatch], please report any matching related issues on that repository.\n\n## Usage\n\n```js\nvar findup = require('findup-sync');\nfindup(patternOrPatterns [, micromatchOptions]);\n\n// Start looking in the CWD.\nvar filepath1 = findup('{a,b}*.txt');\n\n// Start looking somewhere else, and ignore case (probably a good idea).\nvar filepath2 = findup('{a,b}*.txt', {cwd: '/some/path', nocase: true});\n```\n\n## API\n\n### `findup(patterns, [options])`\n\n- `patterns` **{String|Array}**: Glob pattern(s) or file path(s) to match against.\n- `options` **{Object}**: Options to pass to [micromatch]. Note that if you want to start in a different directory than the current working directory, specify a `cwd` property here.\n- `returns` **{String}**: Returns the first matching file.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n\n[downloads-image]: https://img.shields.io/npm/dm/findup-sync.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/findup-sync\n[npm-image]: https://img.shields.io/npm/v/findup-sync.svg?style=flat-square\n[ci-url]: https://github.com/gulpjs/findup-sync/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/findup-sync/dev?style=flat-square\n[coveralls-url]: https://coveralls.io/r/gulpjs/findup-sync\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/findup-sync/master.svg\n\n<!-- prettier-ignore-nd -->\n\n<!-- prettier-ignore-start -->\n\n[micromatch]: http://github.com/micromatch/micromatch\n\n<!-- prettier-ignore-nd -->\n","publish_time":1502136201096,"_cnpm_publish_time":1502136201096,"dist-tags":{"latest":"5.0.0"}}