Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

webassembly-feature

1.3.0 • Public • Published

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.

Install

npm i webassembly-feature

DownloadsWeekly Downloads

488

Version

1.3.0

License

MIT

Unpacked Size

5.56 kB

Total Files

15

Last publish

Collaborators

  • avatar