Skip to content

Instantly share code, notes, and snippets.

@plugn
Last active April 8, 2016 13:20
Show Gist options
  • Save plugn/5c2793c542ec820a327e to your computer and use it in GitHub Desktop.
Save plugn/5c2793c542ec820a327e to your computer and use it in GitHub Desktop.
dump vinyl stream
var through = require('through2').obj;
/**
* tools
*/
function dumpVFS (stream) {
return stream.pipe(through(function(file, encoding, done) {
console.log(' * ', file.path); //, file.inspect(), file.contents.toString());
done(null, file);
}));
}
module.export = {
dumpVFS: dumpVFS
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment