Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Created November 3, 2014 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyrexus/3e586401c1a02d6d437d to your computer and use it in GitHub Desktop.
Save joyrexus/3e586401c1a02d6d437d to your computer and use it in GitHub Desktop.
thru streams

thru stream - a transform stream operating in objectMode.

Components

  • through2 - makes it easy to generate transform streams without all the subclassing boilerplate
  • through2-map - Array.prototype.map analog for streams
  • through2-filter - Array.prototype.filter analog for streams
  • through2-reduce - Array.prototype.reduce analog for streams
  • stream reducer demo - showing how to extend a transform stream to create reducers/accumulators for streamed objects

Collections

  • sculpt - a collection of transform stream utilities (all operating in objectMode)
  • pipe-iterators - another collection of functions for iterating over object mode streams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment