1.0.0 • Published 10 years ago

unpiper v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

unpiper

Recursively unpipe streams. Unpipes everything.

Installation

npm install unpiper

Example

  var a = through()
  var b = through()
  var c = through()

  a = unpiper(a)

  a
  .pipe(b)
  .pipe(c)

  b.once('unpipe', function() {
    console.log('unpiped b')
  })
  c.once('unpipe', function() {
    console.log('unpiped c')
  })

  // c will be automatically unpiped.
  a.unpipe(b)
  // => unpiped b
  // => unpiped c

License

MIT

1.0.0

10 years ago