{"name":"look-up","description":"Faster drop-in replacement for find-up and findup-sync.","version":"0.8.3","homepage":"https://github.com/jonschlinkert/look-up","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/look-up.git"},"bugs":{"url":"https://github.com/jonschlinkert/look-up/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","benchmark":"npm run benchmark"},"dependencies":{"is-glob":"^2.0.1","lazy-cache":"^1.0.3","micromatch":"^2.3.7","normalize-path":"^2.0.1","resolve-dir":"^0.1.0"},"devDependencies":{"ansi-bold":"^0.1.1","benchmarked":"^0.1.4","find-up":"^1.0.0","findup-sync":"^0.3.0","glob":"^5.0.15","gulp":"^3.9.0","gulp-eslint":"^1.1.0","gulp-istanbul":"^0.10.1","gulp-mocha":"^2.1.3","is-absolute":"^0.2.2","minimist":"^1.2.0","mocha":"*","resolve":"^1.1.6","should":"*","user-home":"^2.0.0"},"keywords":["file","find","find-up","findup","glob","look","match","package","package.json","pattern","resolve","search","sync","up"],"verb":{"related":{"list":["look-up-cli","is-glob","micromatch"]}},"gitHead":"5c06ede82c871bfcc21dd3638ad2415ee9050ffd","_id":"look-up@0.8.3","_shasum":"04238dd4066f0cb6905967f4727c069a758de8d7","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"04238dd4066f0cb6905967f4727c069a758de8d7","tarball":"http://registry-npm.ywwl.com/look-up/download/look-up-0.8.3.tgz","integrity":"sha512-+DuCBtQZAh1T2JRIMmQ3LibEcAx5ejPr7x2TqdvMDh40StzwLTzYTEIxwe9MxSDvJE84I9ODSZcgNb4OpPXKWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB27Zyfa5184x9KiSiuXfD8GGEPSAzYYBXx1hp4WeziSAiA+wgAp1yy/zY2VbEoyjqF62RbLDbpPI2ztrhONzmRT7Q=="}],"size":3645,"noattachment":false,"key":"/look-up/-/look-up-0.8.3.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/look-up-0.8.3.tgz_1454553893703_0.27942057559266686"},"deprecated":"Deprecated in favor of findup-sync, please use that library instead.","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":1454553896451,"_cnpm_publish_time":1454553896451,"dist-tags":{"latest":"0.8.3"}}