# gulp-batch-replace

> A batch string/regexp replace plugin for gulp

Latest version **0.0.0** (published 2014-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-batch-replace
pnpm add gulp-batch-replace
yarn add gulp-batch-replace
bun add gulp-batch-replace
```

## 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 | 2014-02-03 |
| First published | 2014-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Michael Ostermann |
| Maintainers | metrime |
| Keywords | gulpplugin, batch, string, regexp, replace, multiple |

## Links

- npm: https://www.npmjs.com/package/gulp-batch-replace
- Repository: https://github.com/Metrime/gulp-batch-replace
- Issues: https://github.com/Metrime/gulp-batch-replace/issues
- npm.io page: https://npm.io/package/gulp-batch-replace

## Dependencies (1)

- [event-stream](https://npm.io/package/event-stream.md) latest

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.0.0 (latest) — 2014-02-03

## README

# gulp-batch-replace
> A [gulp-replace](https://github.com/lazd/gulp-replace) fork for batch replacing files.


##Installation

	npm install gulp-batch-replace

## Usage

	var replaceThis = [
		[ 'original', 'replacement' ],
		[ 'original1', 'replacement1' ],
		[ 'original2', 'replacement2' ]
	];
	
	var replace = require('gulp-batch-replace);
	
	gulp.task('example', function(){
		gulp.src('foo.txt')
			.pipe(replace(replaceThis))
			.pipe(gulp.dest('bar/'));
	});


## API

gulp-batch-replace can be called with a string or regex.

### replace(array)

#### array

Should contain subarrays, where the first value is the search parameter (string or regexp) and the second value is the replacement value (string).

You can also mix search parameter types, for example:

	var replaceMe = [
		[ 'original', 'replacement' ],
		[ /regexp/g, 'replacement' ],
		...
	];

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