{"name":"file-exists","version":"1.0.0","description":"Check if filepath exists and is a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | tap-spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/scottcorgan/file-exists.git"},"keywords":["file","exists","fs","isfile","is-file"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/file-exists/issues"},"homepage":"https://github.com/scottcorgan/file-exists","devDependencies":{"mkdirp":"^0.5.0","rmdir":"^1.0.4","tap-spec":"^4.1.0","tape":"^4.2.2"},"gitHead":"2915cfcbd7f1ee872557be24a54d3ecc1f5e5d78","_id":"file-exists@1.0.0","_shasum":"e6d269b56567b8922581398e990dd7078f72d616","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"e6d269b56567b8922581398e990dd7078f72d616","tarball":"http://registry-npm.ywwl.com/file-exists/download/file-exists-1.0.0.tgz","integrity":"sha512-rykgoYUsbdq99frgXsZHxAVTKtL0Pe40K5prNEVVbKoXAawzjh+DnlFCYZVjmobUsUMvQLNXbSDcy0wEAityvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrnPyqUgokp83SBncg1UipBO/aA6WlZg0LNew8zAMVEAiEAuDZlPd1pKXzPb2u3WT0dtri59RmX2jR4/T9D1Eb5WkI="}],"size":2087,"noattachment":false,"key":"/file-exists/-/file-exists-1.0.0.tgz"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"readme":"# file-exists\n\nCheck if filepath exists and is a file. Returns false for directories.\n\n_(Requires node >=6.0.0)_\n\n## Install\n\n```\nnpm install file-exists --save\n```\n\n## Usage\n\n```js\nconst fileExists = require('file-exists');\n\nfileExists('/index.html', (err, exists) => console.log(exists)) // OUTPUTS: true or false\n\nfileExists('/index.html').then(exists => {\n  console.log(exists) // OUTPUTS: true or false\n})\n\nconsole.log(fileExists.sync('/index.html')) // OUTPUTS: true or false\n```\n\n### Options\n\n#### fileExists(filepath[, options, callback])\n\n* `filepath` - the path to the file to check if it exists\n* `options` - an object of options\n  * `root` - the root directory to look in (or cwd)\n* `callback(err, exists)` - gets called when checking is done\n\n#### fileExists.sync(filepath[, options])\n* `filepath` - the path to the file to check if it exists\n* `options` - an object of options\n  * `root` - the root directory to look in (or cwd)\n\n## Run Tests\n\n```\nnpm install\nnpm test\n```\n","publish_time":1448044630008,"_cnpm_publish_time":1448044630008,"dist-tags":{"latest":"5.0.1"}}