Simple example how to use WASM in node.js projects.
- run
npm installoryarn; - check out the code,
index.jscontains the node code that uses wasm files.assembly/index.tscontains the AssemblyScript code that is compiled to WebAssembly. - Run
npm run asbuildoryarn run asbuildto compile to code to webassembly. - Run
node index.jsto see the magical "Hello, Motley" string to appear.