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
- Host: GitHub
- URL: https://github.com/mixmaxhq/gulp-grep-contents
- Owner: mixmaxhq
- License: mit
- Created: 2015-02-14T05:37:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T16:09:50.000Z (over 1 year ago)
- Last Synced: 2025-04-24T10:03:48.009Z (28 days ago)
- Topics: corgi-tag
- Language: JavaScript
- Size: 22.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'));
```