# stream-str-replace

> A Stream transformer and command line utility to find and replace strings in streams.

Latest version **1.0.2** (published 2015-12-14) · MIT license · 0 weekly downloads

## Install

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

Provides the command `strepl`.

## 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.2 |
| Published | 2015-12-14 |
| First published | 2015-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ramy Eldesoky |
| Maintainers | rdesoky |

## Links

- npm: https://www.npmjs.com/package/stream-str-replace
- Repository: https://github.com/rdesoky/stream-str-replace
- Homepage: https://github.com/rdesoky/stream-str-replace#readme
- Issues: https://github.com/rdesoky/stream-str-replace/issues
- npm.io page: https://npm.io/package/stream-str-replace

## Recent versions

- 1.0.2 (latest) — 2015-12-14
- 1.0.1 — 2015-12-13
- 1.0.0 — 2015-12-13

## README

# Stream-Str-Replace

A Stream transformer and command line utility to find and replace strings in streams.


### Sample usage:

```javascript
var fs = require('fs');
var streamStrReplace = require('stream-str-replace');

process.stdin
	.pipe( streamStrReplace('find', 'replace') )
	.pipe( process.stdout );


fs.createReadStream('package.json')
	.pipe( streamStrReplace('MIT', 'GPL')
	.pipe( fs.createWriteStream( 'package2.json' );

```

'find' parameter default is ';'

'replace' parameter default value is '\n'

### Command line tool (strepl)

```
>npm install stream-str-replace -g

>path | strepl

>type myFile.txt | strepl find_text replace_text > myNewFile.txt


```

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