Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

feature request: split objectMode into readableObjectMode and writableObjectMode #6284

@jonathanong

Description

@jonathanong

http://nodejs.org/api/stream.html#stream_state_objects

basically, the docs say "don't touch the stream states except to set explicit object modes". why not have readableObjectMode and writableObjectMode options in addition to objectMode so you can just get rid of this whole section?

for example, in WritableState, we can do:

this.objectMode = !!(options.writableObjectMode || options.objectMode)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions