Crypto Wasm
    Preparing search index...

    Function detectCapabilities

    • Return a summary of WASM capabilities in the current runtime.

      Returns { wasmSupported: boolean; streamingSupported: boolean; simdSupported: boolean }

      • wasmSupported: boolean

        Whether basic WebAssembly instantiation is supported.

      • streamingSupported: boolean

        Whether WebAssembly.instantiateStreaming is available.

      • simdSupported: boolean

        Whether WASM SIMD (V128) instructions are supported.

      import { detectCapabilities } from "@aspect/crypto-wasm";

      const caps = detectCapabilities();
      console.log(caps.wasmSupported); // true
      console.log(caps.simdSupported); // true or false
      console.log(caps.streamingSupported); // true or false