Socket
Socket
Sign inDemoInstall

unpipe

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unpipe

Unpipe a stream from all destinations


Version published
Maintainers
1
Install size
5.10 kB
Created

Package description

What is unpipe?

The 'unpipe' npm package is designed to remove or detach a stream from a pipeline. This can be particularly useful in scenarios where you need to gracefully handle stream errors or manipulate the flow of data dynamically. It provides a straightforward API to unpipe streams, which can be beneficial in creating more robust and error-resilient streaming applications.

What are unpipe's main functionalities?

Unpipe a stream

This code demonstrates how to use 'unpipe' to detach a stream when an error occurs. It's useful for preventing memory leaks or unintended data processing after an error.

const unpipe = require('unpipe');
const stream = getSomeReadableStream();
stream.on('error', function(err) {
  unpipe(stream);
});

Other packages similar to unpipe

Readme

Source

unpipe

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Unpipe a stream from all destinations.

Installation

$ npm install unpipe

API

var unpipe = require('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).

License

MIT

FAQs

Last updated on 14 Jun 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc