pipe

Pipe streams together with a more awesome syntax, like `a | b | c | pipe(process.stdout)`

npm install pipe
5 downloads in the last day
24 downloads in the last week
62 downloads in the last month

SYNOPSIS

Magical pipes

DESCRIPTION

Pipe streams together with a more awesome syntax, like a | b | c

MOTIVATION

Fun

EXAMPLES

pipechain does not require through, i just like using through.

var through = require('through')
require('pipechain').install()

var a = through(function(d) {
  this.queue(d.toString().toUpperCase())
})

var b = through(function(d) {
  this.queue(d.split('-').join(','))
})

var c = through(function(d) {
  this.queue(d.split(',').reverse().toString())
})

a | b | c | process.stdout

a.write('a-s-d-f') // OMG WTF? => F,D,S,A
npm loves you