JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 198
  • Score
    100M100P100Q88983F
  • License MIT

Collect the stream data and send it into a callback function.

Package Exports

  • stream-data

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stream-data) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stream-data

PayPal AMA Version Downloads Get help on Codementor

Collect the stream data and send it into a callback function.

☁️ Installation

$ npm i --save stream-data

📋 Example

const streamData = require("stream-data")
    , fs = require("fs")
    ;

// Create a read stream
let str = fs.createReadStream(`${__dirname}/input.txt`);

// Pass the stream object and a callback function
streamData(str, (err, data) => {
    console.log(err || data);
});

📝 Documentation

streamData(str, cb)

Collect the stream data and send it into a callback function.

Params

  • Stream str: The stream object.
  • Function cb: The callback function.

Return

  • Stream The stream object.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © Ionică Bizău