An open API service indexing awesome lists of open source software.

https://github.com/mixmaxhq/gulp-grep-contents

Gulp plugin for filtering out file contents
https://github.com/mixmaxhq/gulp-grep-contents

corgi-tag

Last synced: 18 days ago
JSON representation

Gulp plugin for filtering out file contents

Awesome Lists containing this project

README

        

# gulp-grep-contents

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

# Usage

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

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

Inverted

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

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