2.0.4 • Published 3 years ago

final-stream v2.0.4

Weekly downloads
72
License
MIT
Repository
github
Last release
3 years ago

Final Stream

GitHub code size in bytes GitHub package.json version GitHub

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.