{"_id":"file-exists","_rev":"21-f41eeebe4c0b22d59cc11d5769e17471","name":"file-exists","description":"Check if filepath exists and is a file","dist-tags":{"latest":"5.0.1"},"versions":{"0.1.0":{"name":"file-exists","version":"0.1.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@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":"803335602e25b077ce0b6dfac4aaae4bee6faee0","_id":"file-exists@0.1.0","_shasum":"658b244ecb73963102922dc01f7f722df0a68042","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"dist":{"shasum":"658b244ecb73963102922dc01f7f722df0a68042","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-0.1.0.tgz","integrity":"sha512-wnzA5t3UcLMt9JnSwzTSQOiYu8wSwitciL2YdNdzjKaykjuTxOGeBK6jGt+1Hu7bXw5xJXTe/AU7dDpgKR0EKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFjiu0i7jJGEMgNDSP4h1SDWhHhtKqOmq0YvHHRxxkB9AiEA5OmixxsQYI5+VLrmxCQbEWPeu9NqtSWM2q4X4+XcJpk="}]}},"0.1.1":{"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":"https://registry.npmjs.org/file-exists/-/file-exists-0.1.1.tgz","integrity":"sha512-hemB19ga8LcrJsXe+75DTpwhjv9/hcI7MjMP8G91o+Z6Y7C3mmokMPbyVr0N+4eq4IClNKLF+7UfRU5AV9chYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoNpYvBEHl0dNXuZn2wbQMVPQvCIT5LbRJezZ+ng3hdwIgEIf9O985cTnQ/V86tT3bxUF5KT03+iYmDcd2Av5Vbws="}]}},"1.0.0":{"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":"https://registry.npmjs.org/file-exists/-/file-exists-1.0.0.tgz","integrity":"sha512-rykgoYUsbdq99frgXsZHxAVTKtL0Pe40K5prNEVVbKoXAawzjh+DnlFCYZVjmobUsUMvQLNXbSDcy0wEAityvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrnPyqUgokp83SBncg1UipBO/aA6WlZg0LNew8zAMVEAiEAuDZlPd1pKXzPb2u3WT0dtri59RmX2jR4/T9D1Eb5WkI="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}]},"2.0.0":{"name":"file-exists","version":"2.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":"371df5917e6f9d9d23b1f81b4e6552bb5ac3b3d5","_id":"file-exists@2.0.0","_shasum":"a24150665150e62d55bc5449281d88d2b0810dca","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"a24150665150e62d55bc5449281d88d2b0810dca","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-2.0.0.tgz","integrity":"sha512-xiDzGS+oe7RleGLItoPTKVj3DjKHiVANV6dEyWTt3yB08H/AHuyvjh0aZ8jISQ53yhyTWVLsDzhJ5IbvPciBjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC03FlPp1N/SN/07chqcpMNj90DkwjB4nlQmKiRwQZO7wIgFxufy3nUxVMmnMkQsWQ0ORg7Qq1tP6sUiSLvz6Iu91w="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-exists-2.0.0.tgz_1470144724458_0.9976339789573103"}},"3.0.0":{"name":"file-exists","version":"3.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":"135b04045b1596544e783660d6c855b3b0aed416","_id":"file-exists@3.0.0","_shasum":"db81c59080079adafe120f3669bf04bfd947debc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"db81c59080079adafe120f3669bf04bfd947debc","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-3.0.0.tgz","integrity":"sha512-DH7+z1vFU6ZKCqEtgK4pXwzxmS2nszklJ8i8WGHTPgJzJkBVloY/o6s/EMZ4dDg7KLI2NboHKmogFDbpuBCoqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyG/5KkEIlqxWkphQU9mu1SuTaXPHB0lOCF5wuyNYphQIgdkZ2T665+uUJVwK+wv0qyIr+59mOBGRIDxo4y0IF7Y4="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/file-exists-3.0.0.tgz_1486479390292_0.42030399153009057"}},"3.0.1":{"name":"file-exists","version":"3.0.1","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":"fa89c120c02e1e667fe447157882dbb423a88b9f","_id":"file-exists@3.0.1","_shasum":"aaf6cd50cd2370233252f4fcb48a1a521965b22e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"aaf6cd50cd2370233252f4fcb48a1a521965b22e","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-3.0.1.tgz","integrity":"sha512-+/FJSG6nI0ry6scD2npWRNWH6QtMDF4v3If4ogeTaFXnPI2nUiGej+cnyPvnYQ6SPP2M4QWNWeUxNBIfBQpIew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5ySyv5JDRVyixxKMtDNOHSZXOuTGF17CQ1hn/HsaMgAiEAi/o6OBI14x77rJiJqPuxIO6B2T7cEQ8NvrOruWiEFjg="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/file-exists-3.0.1.tgz_1486479765799_0.6760011021979153"}},"3.0.2":{"name":"file-exists","version":"3.0.2","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":"d6b9b65971a27eacfd5bc93ffa7abcf56919d44a","_id":"file-exists@3.0.2","_shasum":"1d6b3c197810b43f85892e7eed478a637b1ab614","_from":".","_npmVersion":"4.3.0","_nodeVersion":"6.9.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"1d6b3c197810b43f85892e7eed478a637b1ab614","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-3.0.2.tgz","integrity":"sha512-pe5RJcufbPvcfJxNjLhhWcPXSvxTt4NRX+5UDThhcWHkakpdhgo3+PcLqSJZCBrBcsFbxxE1cUth4mSM9jrBzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLxA6tMA0nCl1kjoi0xrXVzCZBVcbsFLkB8QVIecYk2gIgV0n2mI0uFdRtcLJ12W3VUE9vpKzzNJsSOpZIqCWPxAU="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/file-exists-3.0.2.tgz_1488978070836_0.7234392759855837"}},"4.0.0":{"name":"file-exists","version":"4.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":"4cae403bbc3c532d121afd2bdedf64d711470f25","_id":"file-exists@4.0.0","_shasum":"104eacf25d3fd6b3e462951ae923533195ffb52b","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"shasum":"104eacf25d3fd6b3e462951ae923533195ffb52b","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-4.0.0.tgz","integrity":"sha512-RKQjSxvVwo5PGB81O9lR+ThZli+KDt14F4g0pdr3/rqLZH+ljIskfU5WKhKtuBkqExz4xIGl4xKZQ05hUKaSoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDVY5P/6BRXM8Qc+UZHuy82QxHswYlV4l/Az8C4VlnLLAiEAqoz05TDtq79HAu3pVgod49VbSdJZg+sirL9JcAwCIso="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists-4.0.0.tgz_1496331493234_0.07535160169936717"}},"5.0.0":{"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":"https://registry.npmjs.org/file-exists/-/file-exists-5.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+mDoiayv1T29SzjRd+6eAxQkfQKxNt7eFviWVbCRw6gIgak9ZWvsWIkH6TUou+X9eLy+ZsoMLMhsAaDfSWURHGKo="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists-5.0.0.tgz_1506513157702_0.7896219654940069"}},"5.0.1":{"name":"file-exists","version":"5.0.1","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":"bd4b4a32d7a48792bb0fa37d61f10b13dd0cb42e","_id":"file-exists@5.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"dist":{"integrity":"sha512-TeBMgeKbdSsQtcY2XqKY/yTa4BciMD/Gw8YcND0XMDZt4CDj87l1Wl4x7K0ravZ80tZcyIGMD0hj2VSRPR8M8Q==","shasum":"1dcd017f787fc7be7a09a6ef3e6a3550cea31198","tarball":"https://registry.npmjs.org/file-exists/-/file-exists-5.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDegxU0a2y2dLymUNf8qdGj5ddYuQ4I41qKQGX11MA44AIgCle1EU01tQDY6aMV/bZAZnBJzm3Jei4TxZ3KEX6iQcQ="}]},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/file-exists-5.0.1.tgz_1514929028661_0.2489349499810487"}}},"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","maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2022-06-18T00:35:35.044Z","created":"2014-07-17T23:30:52.010Z","0.1.0":"2014-07-17T23:30:52.010Z","0.1.1":"2014-07-18T22:29:22.762Z","1.0.0":"2015-11-20T18:37:10.008Z","2.0.0":"2016-08-02T13:32:07.006Z","3.0.0":"2017-02-07T14:56:30.957Z","3.0.1":"2017-02-07T15:02:47.577Z","3.0.2":"2017-03-08T13:01:11.561Z","4.0.0":"2017-06-01T15:38:14.223Z","5.0.0":"2017-09-27T11:52:38.662Z","5.0.1":"2018-01-02T21:37:09.514Z"},"homepage":"https://github.com/scottcorgan/file-exists","keywords":["file","exists","fs","isfile","is-file"],"repository":{"type":"git","url":"git+ssh://git@github.com/scottcorgan/file-exists.git"},"author":{"name":"Scott Corgan"},"bugs":{"url":"https://github.com/scottcorgan/file-exists/issues"},"license":"MIT","readmeFilename":"README.md","users":{"maxrimue":true,"ronin161":true,"steve3d3d":true,"rocket0191":true,"sergiodxa":true,"kiinlam":true}}