JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 198
  • Score
    100M100P100Q89052F
  • 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

Patreon 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.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • ajs—Asynchronous templating in Node.js

📜 License

MIT © Ionică Bizău