Last active
April 8, 2016 13:20
-
-
Save plugn/5c2793c542ec820a327e to your computer and use it in GitHub Desktop.
dump vinyl stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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