0.0.1 • Published 10 years ago

gulp-grep-contents v0.0.1

Weekly downloads
127
License
MIT
Repository
github
Last release
10 years ago

gulp-grep-contents

Gulp plugin for filtering files based on a regular expression matching their contents.

Usage

var grepContents = require('gulp-grep-contents');

gulp.src(['./templates/*.hbs'])
  .pipe(grepContents(/<head>/))
  .pipe(gulp.dest('./headers'));

Inverted

var grepContents = require('gulp-grep-contents');

gulp.src(['./templates/*.hbs'])
  .pipe(grepContents(/<head>/, {inverted: true}))
  .pipe(gulp.dest('./body'));