Notify President Madagascar
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    stream-iteratorpublic

    stream-iterator

    Turns a Node.js streams2 stream into an asynchronous iterator.\ The iterator can be conveniently used with the iterator functions in the async-iterators module.

    var createStreamIterator = require('stream-iterator')
     
    var iterator = createStreamIterator(aReadableStream)
     
    var iterate = function() {
      iterator.next(function(err, data) {
        console.log(data)
        if (data) iterate()
      })
    }
     

    License

    MIT

    Keywords

    none

    install

    npm i stream-iterator

    Downloadsweekly downloads

    5

    version

    0.0.1

    license

    none

    last publish

    collaborators

    • avatar