{"name":"file-exists","version":"0.1.1","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@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":"^0.2.0","tape":"^2.13.3"},"gitHead":"82f0a2efbf2e634f0aef105fdd98f804a8cc7439","_id":"file-exists@0.1.1","_shasum":"993d3fffb5b49d11fefcc8f45c2355027440803c","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"993d3fffb5b49d11fefcc8f45c2355027440803c","tarball":"http://registry-npm.ywwl.com/file-exists/download/file-exists-0.1.1.tgz","integrity":"sha512-hemB19ga8LcrJsXe+75DTpwhjv9/hcI7MjMP8G91o+Z6Y7C3mmokMPbyVr0N+4eq4IClNKLF+7UfRU5AV9chYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoNpYvBEHl0dNXuZn2wbQMVPQvCIT5LbRJezZ+ng3hdwIgEIf9O985cTnQ/V86tT3bxUF5KT03+iYmDcd2Av5Vbws="}],"size":2101,"noattachment":false,"key":"/file-exists/-/file-exists-0.1.1.tgz"},"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":1405722562762,"_cnpm_publish_time":1405722562762,"dist-tags":{"latest":"5.0.1"}}