1.0.1 • Published 1 year ago
vasilcriptan v1.0.1
WebAssembly Integration Package
This package provides a simple utility for loading and interacting with WebAssembly modules in your Node.js applications.
Installation
Install the package using npm:
npm install your-package-name
const wasmPackage = require("your-package-name");
(async () => {
try {
const wasmInstance = await wasmPackage("path/to/your.wasm");
const result = await wasmInstance.performCalculation(someData);
console.log(result);
} catch (error) {
console.error("Error loading or using WebAssembly:", error);
}
})();
performCalculation: (data) => module.instance.exports.calculate(data),
// ... other functions based on your WASM module's exports