https://github.com/xtuc/webassembly-feature
Test if a WebAssembly feature is supported
https://github.com/xtuc/webassembly-feature
Last synced: over 1 year ago
JSON representation
Test if a WebAssembly feature is supported
- Host: GitHub
- URL: https://github.com/xtuc/webassembly-feature
- Owner: xtuc
- License: mit
- Created: 2019-03-28T21:55:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-01T23:58:21.000Z (over 6 years ago)
- Last Synced: 2025-04-30T12:25:29.827Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://sauleau.com/notes/test-if-a-WebAssembly-feature-is-supported.html
- Size: 13.7 KB
- Stars: 17
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webassembly-feature
> Test if a WebAssembly feature is supported
## Install
Using npm:
```sh
npm install --save webassembly-feature
```
or using yarn:
```sh
yarn add webassembly-feature
```
## Usage
API:
```js
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.