index.js
function streamOutput( callback ) {
	return function(err, filenames) {
		if (err) {
			callback(err, null);
		} else {
			// Create read streams from each input
			var streams = []
			for (var i=0; i<filenames.suffix.length; i++)
				streams.push([
					fs.createReadStream( filenames.basename + filenames.suffix[i]),
					filenames.suffix[i]
				]);
			// Callback with streams
			callback(err, streams);
		}
	}
}
function streamOutput( callback ) {
	return function(err, filenames) {
		if (err) {
			callback(err, null);
		} else {
			// Create read streams from each input
			var streams = []
			for (var i=0; i<filenames.suffix.length; i++)
				streams.push([
					fs.createReadStream( filenames.basename + filenames.suffix[i]),
					filenames.suffix[i]
				]);
			// Callback with streams
			callback(err, streams);
		}
	}
}
function streamOutput ( callback ) { return function ( err , filenames ) { if ( err ) { callback ( err , null ) ; } else { // Create read streams from each input var streams = [ ] for ( var i = 0 ; i < filenames . suffix . length ; i ++ ) streams . push ( [ fs . createReadStream ( filenames . basename + filenames . suffix [ i ] ) , filenames . suffix [ i ] ] ) ; // Callback with streams callback ( err , streams ) ; } } }
Read resulting bundle and return a stream with it
Read resulting bundle and return a stream with it