smash-streams
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

smash-streams

NPM version Build Status Dependency Status

Smash your streams together and consume them as one stream.

API

smash-streams(...streams)

Returns a new instance of SmashStream

SmashStream

Class that smashes all stream arguments into one.

Usage

CommonJS

var smashStreams = require('smash-streams');
 
smashStreams(stream1, stream2)
  .pipe(watheverStream());

Or you can even do some extreme smashing:

var smashStreams = require('smash-streams');
 
smashStreams(
  stream1,
  [stream2, stream3, [stream4]],
  stream5
).pipe(extremeStream());

ES2015

import { smashStreams } from 'smash-streams';
 
smashStreams(stream1).pipe(...)

Contributing

Clone the repo via:

git clone https://github.com/nickvdyck/smash-streams.git

Then do:

  • npm install
  • npm run build

Before creating a pull request always run all the tests via

  • npm run test

/smash-streams/

    Package Sidebar

    Install

    npm i smash-streams

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • nickvdyck