objectMode option in writable stream not documented #5377

curvedmark opened this Issue Apr 28, 2013 · 2 comments


None yet

3 participants


Yet the code suggests it's supported.

And since both writable & readable streams use the objectMode option, how do I make a transform stream that has an objectMode writable end and a non-objectMode readable end?

isaacs commented Apr 29, 2013
function MyTransform(options) {
  Transform.call(this, options);
  this._readableState.objectMode = true;
  this._writableState.objectMode = false;
@isaacs isaacs closed this Apr 29, 2013

Perhaps options like readObjects and writeObjects could be added that supersede objectMode. If objectMode is passed, it can be the default for the other two.

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