a Readable of string chunks
A promise that resolves to a string.
This function is asynchronous and returns a promise that resolves to a string. If an error occurs during the conversion, it returns an empty string.
require('fs').createReadStream('file.txt');;
//=> {stream}
await streamToString(fs.createReadStream('file.txt'));;
//=> {content of 'file.txt'}
Generated using TypeDoc
Drain a Readable into a string.