Demo - wasm-pack generates the components required for a wasm native module and native functions are accessed in typescript.
- clone the repo
- run
wasm-pack build --target nodejs
in the root directory. You should have installedwasm-pack
prior. - go to
src_ts
, runnpm install
- run
npm run build
to compile ts files. - you should see a
dist
directory now, to run the demo, executenode dist/application.js