{"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":"62e918299660c4549b5388b8dd0c982f268fa30e","tarball":"https://registry.npmjs.org/is-there/-/is-there-4.5.0.tgz","fileCount":4,"integrity":"sha512-ko8s1Ll99F0fxKSGil5gdQCGOgkmOLWIC++OWBi3IvhlELNZzqUF/ydlcNnzMH18hau9wGfE77RjDMBxX1Qw+w==","signatures":[{"sig":"MEUCIQDZUPgfNstQ8/F3gqzleo74wYHgL5FxiO1hFIiJtP9CUwIgJs7e+7oY6UHnniwThKG6ocVU33z8UrG3+9yjobg5Vbk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJet901CRA9TVsSAnZWagAAHsMQAJXwRc8gesIM6yfcwR+Q\njaA0levsDxJxkOslhhUZireXi9ZIyrt8TL3pXuWqG2P9TTsEq9IZFVT5sDoT\nyz5Ko9MjZKfdOfsJBt5ydpjPNGEEc2PDmWLz5cxDYdQvTwMN69s7O/KixZW3\nd5c6glAgPstQc4WEWLdC1bI7PVwgS3eLIGoEp4Xjf9Xza9ytyb277zOq+pdn\ngy5i2y170Ht9+3OBMe8ypUXzJy+xu1qGhQtZnjFE/8p431nKa0vXtEz0HtGV\nrMGvm9tPlumml3+9QyyTIn5U+lT4x03d5AcAPnn/QHQFtSfKpGD3Gg9uGjwa\nGhN4UxnTa79wVbmr/4jYizA5GnQBsJEKsIFARKdEFAcLUCVBF3ETSFF73S5b\nyRj0RmXXuQEXOC5NMjoka5muMRTESzaIfnEmvBNjJ2/ZqWRxVLtegA9SeOAZ\n3ok3Ale1CgtGZCKa8tZu7zVPYsCEvh4W26P77ZiG3F/oRKdrPiY6ZnKCYa6S\nEPTyNrwpJFVU1GLSxRFAhz1wWPfWBUgcUBM+oyBvOD09INSSfrlA8f1+0vsX\nmuCgflnBZJaOP+5Ze0t2ksT/p2funodNp5qcUkPnSWg2I9A2v9YcrFv8uMCH\nuxq2gpDbqNxwHziwjA0YH16QYvIwK8BJmPcgHqxJmL3sEY8Y6Z1McJ2SHXDW\nYi1m\r\n=5CTx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"is-there","author":{"url":"https://ionicabizau.net","name":"Ionică Bizău","email":"bizauionica@gmail.com"},"gitHead":"30f6b646f1b81cd07b644f397b5745fbc2a1d146","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":"6.14.4","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":"12.16.3","contributors":[{"name":"Kevin Harrison","email":"keharriso@gmail.com"}],"dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/is-there_4.5.0_1589108021205_0.07723538762103055","host":"s3://npm-registry-packages"},"_id":"is-there@4.5.0","version":"4.5.0"}