through2-repipe

For repiping streams. Useful for laying pipelines.

Usage no npm install needed!

<script type="module">
  import through2Repipe from 'https://cdn.skypack.dev/through2-repipe';
</script>

README

repipe

For repiping streams. Useful for laying pipelines.

Installation

npm install through2-repipe

Example

var repipe = require('through2-repipe');
var pipeline = cipher.pipe(decipher).pipe(process.stdout);
var line = pipeline.pipe(repipe(cipher, process.stdout));
    
fs.createReadStream('README.md').pipe(line);

becomes

fs.createReadStream('README.md').pipe(cipher).pipe(decipher).pipe(process.stdout);