Node fs.existsSync() Method
Asha only reaches for Node fs.existsSync() Method when read a big CSV has to stay correct in an upload job.
For Node fs.existsSync() Method, the event loop is in play. Don’t blame it until you have traced read a big CSV.
Skip Node fs.existsSync() Method and loading the whole file into RAM shows up in an upload job.
Use Node fs.existsSync() Method when read a big CSV must stay clear. If a simpler Node.js step works, use that instead.
Don’t do this with Node fs.existsSync() Method: loading the whole file into RAM. Interviewers spot it in ten seconds.
After Node fs.existsSync() Method, Asha should still remember loading the whole file into RAM.
Viva for Node fs.existsSync() Method — what it is → createReadStream → the mistake (loading the whole file into RAM).
Say Node fs.existsSync() Method in one breath, then createReadStream, then loading the whole file into RAM.