Browse Source

Add process.stderr stream

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
bc23ec8d05
  1. 5
      doc/api/process.markdown
  2. 8
      src/node.js

5
doc/api/process.markdown

@ -81,6 +81,11 @@ Example: the definition of `console.log`
};
### process.stderr
A writable stream to stderr. Writes on this stream are blocking.
### process.stdin
A `Readable Stream` for stdin. The stdin stream is paused by default, so one

8
src/node.js

@ -153,6 +153,14 @@
return stdout;
});
var stderr = process.stderr = {
writable: true,
readable: false,
write: process.binding('stdio').writeError
};
stderr.end = stderr.destroy = stderr.destroySoon = function() { };
process.__defineGetter__('stdin', function() {
if (stdin) return stdin;

Loading…
Cancel
Save