Stream grep plugin for gulp
Plugin is not maintaned. Please see gulp-filter as an alternative.
This is grep for stream. It allows to include/exclude files from stream by patterns or custom function.
var grep = require('gulp-grep-stream');
gulp.src(['./src/*.ext'])
.pipe(grep('*magic*.ext'))
.pipe(gulp.dest("./dist/magic"));Invert match
var grep = require('gulp-grep-stream');
gulp.src(['./src/*.ext'])
.pipe(grep('*magic*.ext', { invertMatch: true }))
.pipe(gulp.dest("./dist/not_magic"));Type: String / Array / Function
Patterns for using in minimatch.
StringpatternArrayof patternsFunctionreturningbooleanto determine grep file or not
Type: Boolean
Default: false
If file matches one of patterns, it will be excluded from stream.



