{"maintainers":[{"email":"github@sellside.com","name":"jonschlinkert"},{"email":"brian.woodward@gmail.com","name":"doowb"}],"keywords":[],"dist-tags":{"latest":"0.1.0"},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"description":"Detect if a filepath exists and resolves the full filepath.","readme":"# detect-file [![NPM version](https://img.shields.io/npm/v/detect-file.svg?style=flat)](https://www.npmjs.com/package/detect-file) [![NPM downloads](https://img.shields.io/npm/dm/detect-file.svg?style=flat)](https://npmjs.org/package/detect-file) [![Build Status](https://img.shields.io/travis/doowb/detect-file.svg?style=flat)](https://travis-ci.org/doowb/detect-file)\n\nDetect if a filepath exists and resolves the full filepath.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save detect-file\n```\n\n## Usage\n\n```js\nvar detect = require('detect-file');\n```\n\n## API\n\n### [detect](index.js#L34)\n\nResolve the given `filepath` if it exists.\n\n**Params**\n\n* `filepath` **{String}**: filepath to detect.\n* `options` **{Object}**: Additional options.\n* `options.nocase` **{Boolean}**: Set this to `true` force case-insensitive filename checks. This is useful on case sensitive file systems.\n* `returns` **{String}**: Returns the resolved filepath if it exists, otherwise returns `null`.\n\n**Example**\n\n```js\nvar res = detect('package.json');\nconsole.log(res);\n//=> \"package.json\"\n\nvar res = detect('fake-file.json');\nconsole.log(res)\n//=> null\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n[fs-exists-sync](https://www.npmjs.com/package/fs-exists-sync): Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences… [more](https://github.com/jonschlinkert/fs-exists-sync) | [homepage](https://github.com/jonschlinkert/fs-exists-sync \"Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.\")\n\n## Contributing\n\nThis document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit directly. Any changes to the readme must be made in [.verb.md](.verb.md). See [Building Docs](#building-docs).\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nOr visit the [verb-readme-generator](https://github.com/verbose/verb-readme-generator) project to submit bug reports or pull requests for the readme layout template.\n\n## Building docs\n\n_(This document was generated by [verb-readme-generator](https://github.com/verbose/verb-readme-generator) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-readme-generator && verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2016, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT license](https://github.com/doowb/detect-file/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 06, 2016._","repository":{"type":"git","url":"git+https://github.com/doowb/detect-file.git"},"bugs":{"url":"https://github.com/doowb/detect-file/issues"},"license":"MIT","versions":{"0.1.0":{"name":"detect-file","description":"Detect if a filepath exists and resolves the full filepath.","version":"0.1.0","homepage":"https://github.com/doowb/detect-file","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/detect-file.git"},"bugs":{"url":"https://github.com/doowb/detect-file/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"fs-exists-sync":"^0.1.0"},"devDependencies":{"gulp-format-md":"*","mocha":"*"},"keywords":[],"verb":{"layout":"default","plugins":["gulp-format-md"],"related":{"list":["fs-exists-sync"]},"reflinks":["verb","verb-readme-generator"]},"gitHead":"0e4111c071470ce4be0804c01a0248331418f8c6","_id":"detect-file@0.1.0","_shasum":"4935dedfd9488648e006b0129566e9386711ea63","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"4935dedfd9488648e006b0129566e9386711ea63","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/detect-file/-/detect-file-0.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/detect-file-0.1.0.tgz_1467841748733_0.7613796112127602"},"directories":{}}},"name":"detect-file","time":{"modified":"2017-06-02T17:32:43.914Z","created":"2016-07-06T21:49:09.925Z","0.1.0":"2016-07-06T21:49:09.925Z"},"readmeFilename":"README.md","homepage":"https://github.com/doowb/detect-file"}