file-content-stream

stream file contents

Usage no npm install needed!

<script type="module">
  import fileContentStream from 'https://cdn.skypack.dev/file-content-stream';
</script>

README

file-content-stream

Build Status npm install

usage

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)
}

api

fileContentStream([splitOn]) -> DuplexStream

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

license

MIT