Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose both readable and writable objectMode #21

Open
rgarcia opened this issue Oct 10, 2013 · 0 comments
Open

Expose both readable and writable objectMode #21

rgarcia opened this issue Oct 10, 2013 · 0 comments

Comments

@rgarcia
Copy link
Member

rgarcia commented Oct 10, 2013

Currently the only way to have a mixed transform that is objectMode=true on one side and objectMode=false on the other side is to make your own stream subclass and set _{readable,writable}State.objectMode in the constructor: http://nodejs.org/api/stream.html#stream_state_objects

This would allow us to properly support of transformations that map js objects to buffer/string values and vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant