{"name":"is-there","version":"4.5.2","description":"Check if a file or directory exists in a given path.","main":"lib/index.js","directories":{"example":"example","test":"test"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+ssh://git@github.com/IonicaBizau/node-is-there.git"},"keywords":["fs","exists","file","directory"],"author":{"name":"Ionică Bizău","email":"bizauionica@gmail.com","url":"https://ionicabizau.net"},"contributors":[{"name":"Kevin Harrison","email":"keharriso@gmail.com"}],"license":"MIT","bugs":{"url":"https://github.com/IonicaBizau/node-is-there/issues"},"homepage":"https://github.com/IonicaBizau/node-is-there","dependencies":{},"devDependencies":{"mocha":"^7.1.2"},"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>"]}]},"_id":"is-there@4.5.2","gitHead":"be35a631da8973a172faad21caeaf445b61b3ddf","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ixMkfz3rtS1vEsLf0TjgjqUn96Q0ukpUVDMnPYVocJyTzu2G/QgEtqYddcHZawHO+R31cKVPggJmBLrm1vJCOg==","shasum":"df93dc2a94e1186188bb0e8cfea9601b5d29b93b","tarball":"https://registry.npmjs.org/is-there/-/is-there-4.5.2.tgz","fileCount":4,"unpackedSize":16372,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAjp8J0DyXgtTPmXLKN4IG5CsFsUnuL89pt7fH8csOewAiA8I+q1M2UUQ/TyeHcx9epylEVAw8iIMLkhCiySeF09Sg=="}]},"_npmUser":{"name":"ionicabizau","email":"bizauionica@gmail.com"},"maintainers":[{"name":"ionicabizau","email":"bizauionica@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-there_4.5.2_1739493856574_0.1642258408841475"},"_hasShrinkwrap":false}