felixge/node-buffy — pull request #10 by bkw (2012-10-16 08:04:58+00:00)
Title: implement full spec for writable streams

I had a go at implementing the full spec for writable streams. Is this overkill?

Things done:

* inherit from Stream instead of only EventEmitter
* refactored any changes to _offset into methods _moveOffset and _setOffset
* implemented end() and destroy()
* emit E_PIPE when attempted to write after end()
* emit drain on resume
* added test against stream-spec by @dominictarr