Class: WritableElementStream

WritableElementStream

new WritableElementStream(options)

Writable stream that accepts results in either object or string mode and outputs the text to a supplied html element

Can show interim results when in objectMode

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
outputElement String | DOMElement
property String <optional>

what property of the element should the text be set to. Defaults to value for <input>s and <textarea>s, textContent for everything else

clear Boolean <optional>
true

delete any previous text

Source: