Detect native WebAssembly support.
var hasWebAssemblySupport = require( '@stdlib/utils/detect-wasm-support' );
Detects if a runtime environment supports WebAssembly.
var bool = hasWebAssemblySupport();
// returns <boolean>
var hasWebAssemblySupport = require( '@stdlib/utils/detect-wasm-support' );
var bool = hasWebAssemblySupport();
if ( bool ) {
console.log( 'Environment has WebAssembly support.' );
} else {
console.log( 'Environment lacks WebAssembly support.' );
}
Usage: haswasm [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
$ haswasm
<boolean>