All Projects → xtuc → webassembly-feature

xtuc / webassembly-feature

Licence: MIT license
Test if a WebAssembly feature is supported

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
WebAssembly
147 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].