$ npm install vinyl-assign
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
© 2010 - cnpmjs.org x YWFE | Home | YWFE