yetzt / node-muks

multiplexes a stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

muks

multiplexes a stream by creating multiple stream.PassThrough streams and writing all chunks to them.

usage

const muks = require("muks");

somestream.pipe(muks(
	
	function(stream1){
		stream1.on("data", console.log);
	},

	function(stream2){
		stream2.pipe(somewhere);
	},
	
	function(stream3){
		stream3.pipe(somewhere_else);
	},
	
	// ...
	
))

About

multiplexes a stream


Languages

Language:JavaScript 100.0%