Skip to content
Test if a WebAssembly feature is supported
Branch: master
Clone or download
Latest commit 94f555c Apr 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
features refactor: change simd module Apr 2, 2019
.gitignore feat: initial commit Mar 29, 2019
LICENSE Create LICENSE Apr 1, 2019
Makefile feat: add simd support Apr 1, 2019
README.md doc: add simd in API Apr 2, 2019
package.json 1.1.3 Apr 3, 2019
test.js feat: initial commit Mar 29, 2019

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.