This package, `webassembly-feature` (version 1.3.0), provides synchronous utilities to detect support for various WebAssembly features in the current JavaScript environment. Last updated over six years ago, it is considered abandoned. Its API exposes an object with methods like `supports['multi-value']()` that return boolean values directly. For new projects or those requiring up-to-date feature detection, the `wasm-feature-detect` package (maintained by GoogleChromeLabs) is the recommended alternative, as it offers a more comprehensive and asynchronous API reflecting modern WebAssembly standards and browser capabilities. This package's synchronous nature contrasts with the predominantly asynchronous WebAssembly APIs and feature detection patterns prevalent today.
npm install webassembly-featureVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use `require()` to import the package and synchronously check for several WebAssembly features.
Migrate to `wasm-feature-detect` (e.g., `npm install wasm-feature-detect`) which is actively maintained and provides an asynchronous API reflecting modern WebAssembly standards. Note that `wasm-feature-detect` uses an `async/await` pattern.
If migrating to a modern alternative like `wasm-feature-detect`, adapt your code to handle Promises, e.g., `if (await simd()) { /* ... */ }`.For Node.js projects, use `const supports = require("webassembly-feature");`. For browser environments, ensure proper bundling or stick to `script` tags loading the UMD build if available, or ideally, migrate to `wasm-feature-detect` which supports ESM.Use the CommonJS `require` syntax: `const supports = require('webassembly-feature');`.Access specific feature detection functions as properties of the `supports` object, e.g., `supports['multi-value']()`.
No dependency data recorded yet.