WebAssembly mode
Please note, this new feature is in the development phase
Import the Trevas TS engine
yarn add @inseefr/trevas
Configure WebAssembly mode and call the Trevas TS engine
By default, Trevas TS engine will run In-memory
.
To configure an other implementation, you have to add the key $vtl.engine.processing_engine_names
to your bindings.
For WebAssembly mode, the value has to be wasm
.
import { interpret, type Bindings } from 'trevas';
const bindings: Bindings = {
k: 'v',
'$vtl.engine.processing_engine_names': 'wasm',
};
const result = interpret('VTL expression', bindings);