pull-stream/pull-files

Stream mode

Closed this issue · 0 comments

jamen commented

It would be cool if inside { base, relative, contents }, the contents could be created as a source stream that will eventually be read.

This would let you read whole directories recursively, and then handle their contents lazily for performance gain. (avoid some reads completely)

For example

pull(
  file.contents,
  drain(buf => {
    // ...
  })
)