{"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":"ea292e7fad3fc4d70763fe0af40a286c9f5e1e2e","tarball":"https://registry.npmjs.org/is-there/-/is-there-4.5.1.tgz","fileCount":4,"integrity":"sha512-vIZ7HTXAoRoIwYSsTnxb0sg9L6rth+JOulNcavsbskQkCIWoSM2cjFOWZs4wGziGZER+Xgs/HXiCQZgiL8ppxQ==","signatures":[{"sig":"MEUCIQD5vL23w9VOYd6/inA1+VcEGUpppEMNEWGSDfixLC9haAIgb7rBt1TldENn4jwm/55ztI5YvtcTFeafq1yWiTOBx88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMAROCRA9TVsSAnZWagAAYuEP/226PSHgJqM0OmxW/2+0\nQCurotSGtX+B8OrqTQddCqsCcDrGKbSyf6d6OOluOExHKlFDgge6klLS6jsF\nB2OUGd3R4Uai7pG8fTxaJswfN5q3g9/mWJg6Dybkpcx2EbUevOOb3HoP5lMC\n5UyQR3sppcH8u+l40nUUf6UhNCNAMbXFxTXL3dzqTB3GcZtwCP0qF3ds5BDv\ny81u+PFyz9AuiH6mztgmw70S38rhk27M2VJoPkwr9P6HeNRByUqpFRCW/d6s\n3V8PbHFmTDvsK2FSGT37HSms9GoZF7diDdpqFqUZrj0stCkHkdeStRbvejsi\n3tMCShpz5rB2iA+CRWDZW430c9ueCSMaKkDADRg32IxLXlxayjFSyF3LxIj+\nZphpiYa69t7yBK2l4Xv7hZSn9cZye4PRy9t3VImZj4Hsv2eaduMTRPFUYDc5\nNUt/svcXytRLTjrnw/W8kYJIgGHo0moX32C2ow1LdA2AqqLzkG56TfEZ2dka\nKrOVkXcjAd8wu18B4Sr3JGR+uNqdpaeOBcTOUJpzphRbBnXJ3VWDf0DKNc3l\nuaJUNOyAfNKSvPvAuThfooGoDXhdEG/veeWZzvJuMyY53cV3uk+5YgFRNq/h\neXpP5CslihWMIE357aI2sYmZwR6pigDRHZcJJ/E+CVxGY0bxN5Ay8xZBM49N\nFlfP\r\n=9lbj\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":"1484626d5f57911fb2fe3087687c47a6248279a5","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.1_1596982350312_0.38304152267751057","host":"s3://npm-registry-packages"},"_id":"is-there@4.5.1","version":"4.5.1"}