{"blah":{"h_img":"http://i.imgur.com/ZHzpvvE.png","description":[{"h2":"Why? `fs.exists` already does the job!"},{"p":"Because `fs.exists` and `fs.existsSync` ~~will be~~ are deprecated and in some cases we still need them!"},{"blockquote":["`fs.exists()` is an anachronism and exists only for historical reasons. There should almost never be a reason to use it in your own code.","In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.","**`fs.exists()` will be deprecated.**","<sup>([Source](http://nodejs.org/api/fs.html#fs_fs_exists_path_callback), emphasis added)</sup>"]}]},"bugs":{"url":"https://github.com/IonicaBizau/node-is-there/issues"},"dist":{"shasum":"6d4edb78f2133d1df29277ef19694622b331904b","tarball":"https://registry.npmjs.org/is-there/-/is-there-4.3.1.tgz","integrity":"sha512-g+JL3P7cqqdzLPE+1pj27e+EcI9LsUnoMBLEKu6mpBuJtIvRBFSU6zxPWv6tOHwqOrMxdAuuSMFqgInMjDvCoA==","signatures":[{"sig":"MEYCIQD5e7sjSP/oEowjRL6Ae2+5c+IOtAj6m4oEOlz3w59CDgIhAPoIcwFpFJB08nZ7FX185FgBhkjRMEv9gTSZZMVeOk+s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","name":"is-there","_from":".","author":{"url":"http://ionicabizau.net","name":"Ionică Bizău","email":"bizauionica@gmail.com"},"_shasum":"6d4edb78f2133d1df29277ef19694622b331904b","gitHead":"a334c7dddb6f7c0f18d7468801e9f820c0c49fe3","license":"MIT","scripts":{"test":"mocha test"},"_npmUser":{"name":"ionicabizau","email":"bizauionica@gmail.com"},"homepage":"https://github.com/IonicaBizau/node-is-there","keywords":["fs","exists","file","directory"],"repository":{"url":"git+ssh://git@github.com/IonicaBizau/node-is-there.git","type":"git"},"_npmVersion":"2.14.2","description":"Check if a file or directory exists in a given path.","directories":{"test":"test","example":"example"},"maintainers":[{"name":"ionicabizau","email":"bizauionica@yahoo.com"}],"_nodeVersion":"4.0.0","contributors":[{"name":"Kevin Harrison","email":"keharriso@gmail.com"}],"dependencies":{},"devDependencies":{"mocha":"^2.2.4"},"_id":"is-there@4.3.1","version":"4.3.1"}