async-iterators

v0.0.2
utility functions for async iterators

#async-iterators Utility functions for async iterators in Node.js.

An async iterator is an object with a next(cb) method. Invoking the method will return the next item of an underlying data source.

This library gives you some useful functions like forEach and map for iterators:

var iterators = require('async-iterators')

iterators.forEach(someIterator, function(err, data) {
  console.log(data)
}, function() {
  console.log('end')
})

Some libraries using the async iterator pattern:

##License MIT

Metadata

  • MIT
  • Whatever
  • Mirko Kiefer
  • released 7/7/2013

Downloads

Maintainers