vinyl-fs
Version:
Vinyl adapter for the file system.
19 lines (13 loc) • 310 B
JavaScript
;
var File = require('vinyl');
var Transform = require('streamx').Transform;
function wrapVinyl() {
function wrapFile(globFile, callback) {
var file = new File(globFile);
callback(null, file);
}
return new Transform({
transform: wrapFile,
});
}
module.exports = wrapVinyl;