getEngineInfo()
function getEngineInfo(): Promise<EngineInfo>;
Defined in: impl/js/src/index.ts:587
Report which engine build is loaded — the package version plus the
backend an engine: 'auto' call resolves to (xl3#103).
Async because the backend answer is: xl3-wasm is an optional
dependency resolved with a runtime import(), so whether it is there
cannot be known synchronously. The probe is cached and idempotent, so
the first call pays for it and later calls are free — and a conversion
with the default engine: 'auto' would have paid the same cost anyway.
For the version alone, the VERSION export is synchronous and does
not touch the wasm path.
Returns
Promise<EngineInfo>
Stable
Added in XTL 1.x (xl3#103); additive.
Example
const info = await getEngineInfo();
console.info(`xl3 v${info.version} (${info.backend})`);