# simple-replace-stream

> A Node Transform stream that replaces all the occurrences of a given pattern.

Latest version **1.0.0** (published 2017-01-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install simple-replace-stream
pnpm add simple-replace-stream
yarn add simple-replace-stream
bun add simple-replace-stream
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-01-10 |
| First published | 2017-01-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | deepika |
| Maintainers | deepikakoduri |

## Links

- npm: https://www.npmjs.com/package/simple-replace-stream
- npm.io page: https://npm.io/package/simple-replace-stream

## Recent versions

- 1.0.0 (latest) — 2017-01-10

## README

A Node Transform stream that replaces all the occurrences of a given pattern.

##Example

```
const replaceStream = require('simple-replace-stream')

var regex = new RegExp("some reg exp")

fs.createReadStream('file1')
.pipe(new replaceStream({
  key_find : regex,
  key_replace : "some other string"
}))
.pipe(fs.createWriteStream('file2'))

```

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