Web Assembly exercise project
- Run
nvm useandnpm i - Compile code inside
assembly/index.tsto WebAssembly withnpm run asbuild - The module exposes functions
minusOne,fizzbuzzandreadMemorywhich all accept one number - Start web server to serve the module with
npm start-> you should see the output of the functions in the browser and the console. - To use module in Node REPL run
node --experimental-repl-awaitand then import the module withlet iwasm = await import('iwasm');-> function can then be called like soiwasm.minusOne(number)