Posts by arturHamann • 85 points
2 posts
-
2
votes1
answer32
viewsQ: What is the real difference between Fs.readFile() and Fs.createReadSream()?
The point is that I can use both functions to do the same thing. For example: const fs = require('fs') const path = require('path') const filePath = path.join(__dirname, '../arquivo.txt')…
-
6
votes1
answer102
viewsQ: How does . pipe() work on Node.js?
I have a question about how the .pipe(). I saw videos and read the documentation, but I’m not sure how it works. From what I understand, he basically takes the information from a readableStream and…