dir-stream

stream filenames

dir-stream

given a stream of directory names, will output a stream of all contents of that directory recursively and queued in order of receipt.

optionally, you can pass a configuration object to the function with options:

{
    ignoreExtensions: ['exe'] // don't stream filenames with extensions listed 
  , onlyFiles: false // don't stream dirs 
  , noRecurse: false // don't recurse into dirs 
}

MIT