ggs

gulp-grep-stream

Grep for gulp

Showing:

Popularity

Downloads/wk

58

GitHub Stars

5

Maintenance

Last Commit

7yrs ago

Contributors

3

Package

Dependencies

3

Size (min+gzip)

17.9KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-grep-stream

NPM version Build Status Coveralls Status Dependency Status

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.

Usage

Basic

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"));

API

grep(pattern, options)

pattern

Type: String / Array / Function

Patterns for using in minimatch.

  • String pattern
  • Array of patterns
  • Function returning boolean to determine grep file or not

options.invertMatch

Type: Boolean Default: false

If file matches one of patterns, it will be excluded from stream.

License

MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100