Socket
Socket
Sign inDemoInstall

stream-combiner

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-combiner


Version published
Weekly downloads
4.4M
decreased by-1.65%
Maintainers
1
Weekly downloads
 
Created

What is stream-combiner?

The stream-combiner npm package is used to combine multiple Node.js streams (readable or writable) into a single stream. This is particularly useful for managing stream pipelines and handling data transformations in a more organized and readable manner.

What are stream-combiner's main functionalities?

Stream Pipeline Creation

This code sample demonstrates how to create a stream pipeline using stream-combiner. It combines stdin, a decryption stream, a gzip compression stream, and stdout into a single stream pipeline. Errors in any part of the stream are handled by logging to the console.

const { combine } = require('stream-combiner');
const zlib = require('zlib');
const crypto = require('crypto');

const combinedStream = combine(
  process.stdin,
  crypto.createDecipher('aes192', 'a_secret'),
  zlib.createGzip(),
  process.stdout
);

combinedStream.on('error', console.error);

Other packages similar to stream-combiner

FAQs

Package last updated on 18 Mar 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc