file-content-stream

stream file contents

file-content-stream

given a stream of file names, will output a stream of file contents in format:

{
    filename: '/path/to/file'
  , chunk: (chunk number)
  , data: (data chunk)
}

fileContentStream([splitOn]) -> DuplexStream

  • Where splitOn is an optional sequence to split file data by, defaults to /\r?\n/.

MIT