Skip to content
Test if a WebAssembly feature is supported
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
features
.gitignore
LICENSE
Makefile
README.md
package.json
test.js

README.md

webassembly-feature

Test if a WebAssembly feature is supported

Install

Using npm:

npm install --save webassembly-feature

or using yarn:

yarn add webassembly-feature

Usage

API:

const supports = require("webassembly-feature");

console.log(supports["JS-BigInt-integration"]()); // false
console.log(supports["multi-value"]());           // false
console.log(supports["mutable-global"]());        // true
console.log(supports["simd"]());                  // false

Demo: https://sauleau.com/notes/test-if-a-WebAssembly-feature-is-supported.html.

You can’t perform that action at this time.