WASM loader for Node
Requires the latest version of Node (Node v10).
npm i @wasm-tool/nodenode --experimental-modules --loader @wasm-tool/node index.mjsOr, if your WASM is the main executable:
node --experimental-modules --loader @wasm-tool/node index.wasmSee example.
In order to test any changes you can clone this repository and run the example locally
npm install
cd example
node --experimental-modules --loader ../loader.mjs index.mjs