pipe-stream

0.0.1 • Public • Published

pipe-stream

A function that pipes streams

Example

var net = require("net")
    , piper = require("pipe-stream")
    , through = require("through")

net.createServer(piper(through)).listen(12632, function () {
    var conn = net.connect(12632)

    conn.on("data", function (data) {
        console.log("[CLIENT]", data.toString())
    })

    conn.write("self")
})

Installation

npm install pipe-stream

Contributors

  • Raynos

MIT Licenced

Readme

Keywords

none

Package Sidebar

Install

npm i pipe-stream

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • raynos