ProcessStandardOutputStream
TBD.
Properties
Returns whether the stream was destroyed or errored before emitting 'finish'
.
Number of times writable.uncork()
needs to be called in order to fully uncork the stream.
Is true
after writable.end()
has been called. This property does not indicate whether the data has been flushed, for this use writable.writableFinished
instead.
Is set to true immediately before the 'finish'
event is emitted.
Return the value of highWaterMark
passed when creating this Writable.
This property contains the number of bytes (or objects) in the queue ready to be written. The value provides introspection data regarding the status of the highWaterMark
.
Is true if the stream's buffer has been full and stream will emit 'drain'
.
Getter for the property objectMode
of a given Writable
stream.
Functions
Adds a new handler for the type event. Any given listener is added only once per type and per capture
option value.
Alias for emitter.on(eventName, listener)
.
Dispatches the event to the list of handlers for Event.type.
Calling the writable.end()
method signals that no more data will be written to the Writable. The optional chunk
and encoding
arguments allow one final additional chunk of data to be written immediately before closing the stream.
Calling the writable.end()
method signals that no more data will be written to the Writable. The optional chunk and encoding arguments allow one final additional chunk of data to be written immediately before closing the stream.
Returns an array listing the events for which the emitter has registered listeners. The values in the array are strings or Symbol
s.
Returns the current max listener value for the emitter.
Returns the number of listeners listening to the event named eventName.
Returns an array listing the listeners for the specified event.
Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added.
Adds a one-time listener function for the event named eventName to the beginning of the listener array. The next time eventName is triggered, this listener is removed, and then invoked.
Returns a copy of the array of listeners for the event named eventName, including any wrappers (such as those created by .once()
).
Removes all listeners, or those of the specified eventName
.
Removes all listeners, or those of the specified eventName.
Removes the listener
from the list of handlers for event type
.
Sets the maximum number of listeners for the emitter.
The writable.write()
method writes some data to the stream, and calls the supplied callback once the data has been fully handled. If an error occurs, the callback will be called with the error as its first argument. The callback is called asynchronously and before 'error'
is emitted.