Return a summary of WASM capabilities in the current runtime.
Whether basic WebAssembly instantiation is supported.
Whether WebAssembly.instantiateStreaming is available.
WebAssembly.instantiateStreaming
Whether WASM SIMD (V128) instructions are supported.
import { detectCapabilities } from "@aspect/crypto-wasm";const caps = detectCapabilities();console.log(caps.wasmSupported); // trueconsole.log(caps.simdSupported); // true or falseconsole.log(caps.streamingSupported); // true or false Copy
import { detectCapabilities } from "@aspect/crypto-wasm";const caps = detectCapabilities();console.log(caps.wasmSupported); // trueconsole.log(caps.simdSupported); // true or falseconsole.log(caps.streamingSupported); // true or false
Return a summary of WASM capabilities in the current runtime.