# gulp-content-filter

> Gulp plugin to filter files by content

Latest version **0.0.0** (published 2015-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-content-filter
pnpm add gulp-content-filter
yarn add gulp-content-filter
bun add gulp-content-filter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2015-06-23 |
| First published | 2015-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kenneth Lynne |
| Maintainers | kennethlynne |
| Keywords | gulp, filter |

## Links

- npm: https://www.npmjs.com/package/gulp-content-filter
- Repository: https://github.com/EdtechFoundry/gulp-content-filter
- Homepage: https://github.com/EdtechFoundry/gulp-content-filter#readme
- Issues: https://github.com/EdtechFoundry/gulp-content-filter/issues
- npm.io page: https://npm.io/package/gulp-content-filter

## Dependencies (3)

- [vinyl](https://npm.io/package/vinyl.md) ^0.5.0
- [through2](https://npm.io/package/through2.md) ^2.0.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.5

## Recent versions

- 0.0.0 (latest) — 2015-06-23

## README

# gulp-content-filter
Gulp plugin to filter by file content

## Usage

```javascript

var gulp = require('gulp');
var contentFilter = require('gulp-content-filter');

//Only filter files matching this filename, this is optional
var contentFilterParams = {
    pattern: /\.spec\.js$/
};

//Only include files whos content matches this regex
contentFilterParams.include = new RegExp('//include me!\\s');

//Exclude files whos content matches this regex
contentFilterParams.exclude = new RegExp('//exclude me!\\s');

gulp.src('./**/*.js')
    .pipe(contentFilter(contentFilterParams)
    .pipe(allYourOtherPlugins());
    
```

---
_Source: https://npm.io/package/gulp-content-filter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
