rauschma / nodejs-shell-scripting

3 stars 0 forks source link

Stream recipes #11

Open rauschma opened 2 years ago

Semigradsky commented 2 years ago

11.2 Writing to standard error (stderr)

  • We can write to it via console.error().

Or via console.warn(). This was a surprise for me.

jessepav commented 2 years ago

Throughout the streams chapters, it seems that Readable and Writable streams often are switched incorrectly.

For instance, here we see process.stdout is an instance of stream.Readable, and here we have process.stdin is an instance of stream.Writable.

Likewise, ReadableStreams and WritableStreams are interchanged in Ch 10.