gulp-grep-contents

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i gulp-grep-contents

Weekly Downloads

20

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mikusd
  • mixmax-codeship
  • bradvogel
  • jessem3
  • ahmed-anas
  • guilhermemj
  • jsalvata
  • gabriel-mixmax
  • eduard.borges
  • mixmaxkristina
  • raphaelbs
  • aaavakian
  • adborroto
  • andra.lazariuc
  • mixmax_it
  • leonardo-mixmax
  • shrihari-mixmax
  • akashbhalla
  • laszlovaspal
  • enuma
  • hishank
  • tharindu-wj
  • stefano.dalpiaz
  • kamilgruszka
  • joneslloyd
  • jordins
  • aminao
  • dombi