{"name":"look-up","description":"Like findup-sync and supports the same features but 20x-40x faster on avg.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/look-up","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/look-up.git"},"bugs":{"url":"https://github.com/jonschlinkert/look-up/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/look-up/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"multimatch":"^1.0.1","normalize-path":"^0.3.0"},"devDependencies":{"benchmarked":"^0.1.2","chalk":"^0.5.1","findup-sync":"^0.1.3","mocha":"*","should":"^4.1.0"},"keywords":["file","find","find-up","findup","glob","look","match","package","package.json","pattern","resolve","search","sync","up"],"_id":"look-up@0.2.1","_shasum":"071d082787ecde5a7a4236897427c6f0caff39b9","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"071d082787ecde5a7a4236897427c6f0caff39b9","tarball":"http://registry-npm.ywwl.com/look-up/download/look-up-0.2.1.tgz","integrity":"sha512-Z1RFPjdFmKynwGJtjg4TUgxeNeKWMpO1FEilzfoVyO0d2wVvN5qT8c7aDxVXw+T4IZJ3p9mcUDi0B9QOwZDBvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQTT/GQcMQvcr0D29e4pBHgK24NnxacwC+LNksiWhVBwIgd7zvleewH16VymMpHWP86NLQ9+dB/sMk15aqAfCiaiM="}],"size":4727,"noattachment":false,"key":"/look-up/-/look-up-0.2.1.tgz"},"directories":{},"readme":"# look-up [![NPM version](https://badge.fury.io/js/look-up.svg)](http://badge.fury.io/js/look-up)  [![Build Status](https://travis-ci.org/jonschlinkert/look-up.svg)](https://travis-ci.org/jonschlinkert/look-up)\n\n> Faster drop-in replacement for find-up and findup-sync.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i look-up --save\n```\n\nSee the [benchmarks](#run-benchmarks) or [unit tests](./test.js).\n\n## Usage\n\n```js\nvar lookup = require('look-up');\nlookup('package.json');\n//=> '/Users/jonschlinkert/dev/look-up/package.json'\n```\n\nlook-up will recurse _up from the cwd_ until it finds the given file.\n\n```js\nlookup('package.json', { cwd: 'foo/bar' });\n//=> '/Users/jonschlinkert/dev/look-up/package.json'\n```\n\nGlob patterns are also supported (string or array):\n\n```js\nlookup(['*.json', '*.foo'], { cwd: 'foo/bar' });\n//=> '/Users/jonschlinkert/dev/look-up/package.json'\n```\n\n## Running benchmarks\n\nBenchmarks were run on [mac and windows](https://github.com/jonschlinkert/look-up/issues/1). look-up is 5x-20x faster than [findup-sync](https://github.com/cowboy/node-findup-sync) and 3x faster than [find-up](https://github.com/sindresorhus/find-up)\n\n**Note** that [find-up](https://github.com/sindresorhus/find-up) does not support glob patterns, so these benchmarks only include arguments that are supported by all three libs.\n\nAs of November 20, 2015:\n\n```bash\n#1: deep-close\n  findup-sync x 5,797 ops/sec ±1.66% (90 runs sampled)\n  findup x 22,972 ops/sec ±0.82% (92 runs sampled)\n  lookup x 64,389 ops/sec ±0.75% (92 runs sampled)\n\n#2: deep-far\n  findup-sync x 2,165 ops/sec ±1.01% (92 runs sampled)\n  findup x 8,250 ops/sec ±0.78% (96 runs sampled)\n  lookup x 12,730 ops/sec ±0.93% (92 runs sampled)\n\n#3: nested\n  findup-sync x 21,603 ops/sec ±0.76% (93 runs sampled)\n  findup x 103,427 ops/sec ±0.93% (95 runs sampled)\n  lookup x 381,425 ops/sec ±0.91% (91 runs sampled)\n\n#4: shallow\n  findup-sync x 6,565 ops/sec ±0.66% (92 runs sampled)\n  findup x 23,674 ops/sec ±0.89% (95 runs sampled)\n  lookup x 57,029 ops/sec ±0.83% (93 runs sampled)\n```\n\nTo run the [benchmarks](./benchmark), install dev dependencies:\n\n```bash\nnpm i -d && npm run benchmark\n```\n\n## Related\n\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)\n* [look-up-cli](https://www.npmjs.com/package/look-up-cli): Find a file matching a pattern by walking up parent directories | [homepage](https://github.com/lydell/look-up-cli#readme)\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://www.npmjs.com/package/micromatch) | [homepage](https://github.com/jonschlinkert/micromatch)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Coverage\n\nAs of November 20, 2015:\n\n```\nStatements : 100% (57/57)\nBranches   : 100% (26/26)\nFunctions  : 100% (5/5)\nLines      : 100% (55/55)\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/look-up/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 20, 2015._","publish_time":1417431560809,"_cnpm_publish_time":1417431560809,"dist-tags":{"latest":"0.8.3"}}