0.0.1 • Published 8 years ago

pull-continue v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

pull-continue

A concatenated stream of streams, except the next stream is created when the previous one ends.

var pcontinue = require('pull-continue')

  //log a stream of 0-99 10 times.
  pull(
    //i = the index of the stream you are up to (first stream is 0)
    //n = number of items in previous stream.
    pcontinue(function (i, n) {
      if(i > 10) return
      return pull.count(100)
    }),
    pull.log()
  )

see also pull-cat

License

MIT