JavaScripture
Contribute via GitHub Feedback

Transformer : Object

Passed to the TransformStream constructor. Any JavaScript object can be used as a Transformer. Any of the properties can be specified. If a property is not provided, the TransformStream will use a default behavior for the property.

Instance Methods

Example:

Run

Results:

 

start(controller : TransformStreamDefaultController) : Object

Example:

Run

Results:

 

transform(chunk : Object, controller : TransformStreamDefaultController) : Promise<undefined>

Example:

Run

Results: