final-stream

2.0.4 • Public • Published

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.

/final-stream/

    Package Sidebar

    Install

    npm i final-stream

    Weekly Downloads

    109

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • markwylde