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

Comments

Projects
None yet
5 participants
@ForbesLindesay
Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Mar 9, 2015

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.