Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

series-stream

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

series-stream

Pipe multiple streams into a single stream, ensuring each added stream finishes piping it's data before the next begins.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.9K
increased by18.8%
Maintainers
1
Weekly downloads
 
Created
Source

series-stream Build Status

Pipe multiple streams into a single stream, ensuring each added stream finishes piping it's data before the next begins.

Example

var fs = require('fs')
var createSeriesStream = require('series-stream')

var ss = createSeriesStream()

var file1 = '/path/to/file1'
var file2 = '/path/to/file2'
var file3 = '/path/to/file3'
var outfile = '/path/to/outfile'

// Add streams in the order you want them to pipe out
ss.add(fs.createReadStream(file3))
ss.add(fs.createReadStream(file1))
ss.add(fs.createReadStream(file2))

ss.pipe(fs.createWriteStream(outfile))
// Outfile now contains the contents of file 3, 1 and 2 in that order

Keywords

FAQs

Package last updated on 16 Mar 2015

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