adaltas / node-stream-transform

Object transformations implementing the Node.js `stream.Transform` API
https://csv.js.org/transform/
49 stars 13 forks source link

Difference between this and through? #11

Closed dcousens closed 9 years ago

dcousens commented 9 years ago

Hi,

Just in terms of typical usage, what is the difference between this module and through?

It would seem both modules serve a similar purpose, albeit this module explicitly inherits from stream.Transform.

Just a curious question, no ill intentions :)

wdavidw commented 9 years ago

i'm not familiar with through. the idea of this module is to run a transformation function in parallel or sequentially for each written record with a sync or async signature (parallel mode only make sense if async).

dcousens commented 9 years ago

For the async variant, using through2 in object mode would probably be an identical experience.

In any case, no worries, thanks @wdavidw.