{"name":"file-exists","version":"5.0.0","description":"Check if filepath exists and is a file","main":"index.js","directories":{"test":"test"},"scripts":{"test":"node test/index.js | tap-format-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"},"engines":{"node":">=6.0.0"},"homepage":"https://github.com/scottcorgan/file-exists","devDependencies":{"@tap-format/spec":"^0.2.0","async":"^2.1.4","mkdirp":"0.5.1","rmdir":"1.2.0","tape":"4.6.3"},"gitHead":"bc52f382622f1f2c4c681fe73fd5e3dac0302bea","_id":"file-exists@5.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.3.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"integrity":"sha512-MIMzBjsXrH20bF4TAF24U6MWsqXP4K8Pu/Xj+wX9oh3xKgRfRZ2Z0IPMPMfkVNbO6QeLKmGIyOpW2hVv/AipBA==","shasum":"d8c21d5101312ac8a5600bd86f5420bf9a25b6ad","tarball":"http://registry-npm.ywwl.com/file-exists/download/file-exists-5.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+mDoiayv1T29SzjRd+6eAxQkfQKxNt7eFviWVbCRw6gIgak9ZWvsWIkH6TUou+X9eLy+ZsoMLMhsAaDfSWURHGKo="}],"size":2023,"noattachment":false,"key":"/file-exists/-/file-exists-5.0.0.tgz"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists-5.0.0.tgz_1506513157702_0.7896219654940069"},"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":1506513158662,"_cnpm_publish_time":1506513158662,"dist-tags":{"latest":"5.0.1"}}