Skip to content
This repository has been archived by the owner. It is now read-only.

Public flag for ObjectMode #5064

Open
ForbesLindesay opened this issue Mar 18, 2013 · 2 comments
Open

Public flag for ObjectMode #5064

ForbesLindesay opened this issue Mar 18, 2013 · 2 comments

Comments

@ForbesLindesay
Copy link

@ForbesLindesay ForbesLindesay commented Mar 18, 2013

I want to be able to tell whether an arbitrary stream is in Object Mode, as it affects how I choose to handle the stream.

stream._readableState.objectMode

seems to do the trick, but I was wondering if it could be made public. It also could be nicer if it was exposed as stream.objectMode or similar.

@mkleehammer
Copy link

@mkleehammer mkleehammer commented Aug 17, 2014

If this is done, consider making readsObjects and writesObjects so transform streams that read on type but emit the other can be handled properly.

@mk-pmb
Copy link

@mk-pmb mk-pmb commented Mar 9, 2015

👍

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

No branches or pull requests

5 participants