felixge/node-formidable — pull request #141 by mattrobenolt (2012-04-12 19:43:03+00:00)
Title: Parts as actual Streams

It should be expected for each part that is parsed to be a Stream so the bytes can be piped around and treated like an actual stream.

You'd be able to achieve something like:

```javascript
form.onPart = function(part) {
part.pipe(process.stdout);
};
```

Part is already emitting the right events to be considered a Stream, it just needs to be a Stream object as opposed to an EventEmitter.

Also note, this change knowingly breaks the current test suite because parts are tested as EventEmitters, and I've never used Gently. So I wanted to make sure this was all kosher before I spent time adapting the tests. :)