Treatment process

javascript::process


Configuration

⬡ engine: javascript::JavaScriptEngine

Parameters

↳ var code: string

Inputs

⇥ value: Stream<Json> (json::Json)

Outputs

↦ result: Stream<Option<Json>> (json::Json)


Executes JavaScript code on values.

For every incoming value, code is executed as-is within engine. Inside the code part the incoming value is reffered as globally-accessible value variable. code can return any JS object convertible into JSON data.

If code not actually processable JavaScript code, or its return value not convertible into JSON, a none result value is send.