StaticgetDetects whether the current runtime is Node.js or a browser.
Node.js is identified by the presence of process.versions.node.
StaticisReturns true if the format can be encoded without FFmpeg Wasm in the browser.
Always returns false in Node.js (which uses native child_process instead).
StaticevaluateDetermines the full routing context for a compression job.
Combines environment detection, fast-path eligibility, and file-size thresholds to decide whether to run on the main thread or in a Web Worker.
The compression options including type and format.
Input file size in bytes (used for main-thread vs Worker routing).
A RouteContext describing the chosen execution path.
Evaluates the execution environment and selects the optimal compression engine for each operation (fast path, AVIF encoder, heavy path / Node).