mux-demux-logger

Intercept mdm streams and log them

npm install mux-demux-logger
1 downloads in the last day
4 downloads in the last week
20 downloads in the last month

mux-demux-logger

Intercept mdm streams and log them

Example

Intercept mux-demux data and log it to console.log

var MuxDemux = require("mux-demux-net")
    , logger = require("..")

MuxDemux(logger(function (stream) {
    stream.on("data", function (data) {
        stream.write("echo" + data)
    })
}), 8642)

Installation

npm install mux-demux-logger

Contributors

  • Raynos

MIT Licenced

npm loves you