Assign custom attributes to vinyl files
$ npm install --save vinyl-assign
var gulp = require('gulp');
var vinylAssign = require('vinyl-assign');
gulp.task('default', function () {
return gulp.src('foo.txt')
.pipe(vinylAssign({foo: 'bar'}))
.pipe(gulp.dest('dest'));
});
MIT © Kevin Mårtensson