coleccionista

Helper class that streams files one by one.

Coleccionista

Helper stream class that streams files or other streams one by one in one stream.

var Coleccionista = require('coleccionista');
 
var stream = new Coleccionista(filesOrStreams, options);
//filesOrStreams — array of pathes to files or array of streams 
//options — options for file streams  
 
// now we can use it like usual stream 
stream.pipe(otherStream);
 
  • itemstart — triggers when new file open
  • itemend — triggers when file stream end
  • error — triggers on file errors