Nomming Peanut M&M's

    gulp-grep-stream

    0.0.2 • Public • Published

    gulp-grep-stream

    NPM version Build Status Coveralls Status Dependency Status

    Stream grep plugin for gulp

    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', { invert_match: 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

    Keywords

    none

    Install

    npm i gulp-grep-stream

    DownloadsWeekly Downloads

    83

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • floatdrop