fs-readstream-many

read a glob of files as a single read stream

Usage no npm install needed!

<script type="module">
  import fsReadstreamMany from 'https://cdn.skypack.dev/fs-readstream-many';
</script>

README

fs-readstream-many

read a glob of files as a single read stream

var readmany = require('fs-readstream-many')

var stream = readmany('./logs/*.log')

stream.on('files',function(files){
  console.log('data from files',files)
}).on('data',function(buf){
  console.log(buf)
})