Helper class that streams files one by one.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.npmignore
LICENSE
index.js
package.json
readme.md

readme.md

Coleccionista

Streams files or other streams one by one in one stream.

Usage

let Coleccionista = require('coleccionista');

let stream = new Coleccionista(options);

// now we can use it like usual stream
stream.pipe(otherStream);

options

  • files — array of streams, array of files or wildcard string. For more info look minimatch documentation
  • path — optional, path to look for a files
  • stream — optional, read files stream options

Additional events

  • ready — triggered when file list ready, returns list of files or streams
  • itemstart — triggered when new file begins
  • itemend — triggered when file stream ended
  • error — triggered on errors