unpiper

1.0.0 • Public • Published

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

/unpiper/

    Package Sidebar

    Install

    npm i unpiper

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • timoxley