SyntaxFix
Write A Post
Hire A Developer
Questions
I had more luck using like that :
let string = ''; readstream .on('data', (buf) => string += buf.toString()) .on('end', () => console.log(string));
I use node v9.11.1 and the readstream is the response from a http.get callback.
v9.11.1
readstream
http.get