Final Stream
A tool to read a full stream and callback once finished with the data
Example Usage
With callbacks
const finalStream = require('final-stream');
finalStream(request, function (error, result) {
console.log(error, result.toString());
});
With promises
const finalStream = require('final-stream');
const result = await finalStream(request);
console.log(result.toString());
License
This project is licensed under the terms of the MIT license.