{"name":"findup-sync","description":"Find the first file matching a given pattern in the current directory or the nearest ancestor directory.","version":"0.1.2","homepage":"https://github.com/cowboy/node-findup-sync","author":{"name":"\"Cowboy\" Ben Alman","url":"http://benalman.com/"},"repository":{"type":"git","url":"git://github.com/cowboy/node-findup-sync.git"},"bugs":{"url":"https://github.com/cowboy/node-findup-sync/issues"},"licenses":[{"type":"MIT","url":"https://github.com/cowboy/node-findup-sync/blob/master/LICENSE-MIT"}],"main":"lib/findup-sync","engines":{"node":">= 0.6.0"},"scripts":{"test":"grunt nodeunit"},"dependencies":{"glob":"~3.1.21","lodash":"~1.0.1"},"devDependencies":{"grunt":"~0.4.0","grunt-contrib-jshint":"~0.2.0","grunt-contrib-nodeunit":"~0.1.2"},"keywords":["find","glob","file"],"_id":"findup-sync@0.1.2","dist":{"shasum":"da2b96ca9f800e5a13d0a11110f490b65f62e96d","tarball":"http://registry-npm.ywwl.com/findup-sync/download/findup-sync-0.1.2.tgz","integrity":"sha512-ulkzB/KXLdYTMi83S30G02fn48vd58pwu1RNEKab2AATIo/I0qZcEOeuj5uWVwtQ0DtR0/EjmHzPJ8MZSHMJ4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV2Dv2MjaGY5shfJZFgZMxjCoAur+NtTRiAdxlXh/U/AIhAJfIOtx/mgYBCH8imofQ9mYK75TsJ0YX9f+5xK6ZtULR"}],"size":3347,"noattachment":false,"key":"/findup-sync/-/findup-sync-0.1.2.tgz"},"_npmVersion":"1.1.70","_npmUser":{"name":"cowboy","email":"cowboy@rj3.net"},"maintainers":[{"name":"cowboy","email":"cowboy@rj3.net"}],"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":1362770706600,"_cnpm_publish_time":1362770706600,"dist-tags":{"latest":"5.0.0"}}