xprezzo-stream-unpipe

Unpipe a stream from all destinations and fire all the onclose and cleanup events

Usage no npm install needed!

<script type="module">
  import xprezzoStreamUnpipe from 'https://cdn.skypack.dev/xprezzo-stream-unpipe';
</script>

README

xprezzo-stream-unpipe

Unpipe a stream from all destinations and fire all the onclose and cleanup events

Installation

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install xprezzo-stream-unpipe

API

const unpipe = require('xprezzo-stream-unpipe')

unpipe(stream)

Unpipes all destinations from a given stream. With stream 2+, this is equivalent to stream.unpipe(). When used with streams 1 style streams (typically Node.js 0.8 and below), this module attempts to undo the actions done in stream.pipe(dest).

People

Xprezzo and related projects are maintained by Ben Ajenoui and sponsored by SEO Hero.

License

MIT