1. webassembly-feature
Test if a WebAssembly feature is supported
webassembly-feature
Package: webassembly-feature
Created by: xtuc
Last modified: Tue, 24 May 2022 05:22:11 GMT
Version: 1.3.0
License: MIT
Downloads: 9,021
Repository: https://github.com/xtuc/webassembly-feature

Install

npm install webassembly-feature
yarn add webassembly-feature

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.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code