NPM WASM PKG Test
To use:
- npm i @stravid87/npm_pkg_test
- Then, copy and past the following into a file called 'script.js'
const loadWebAssembly = require('@stravid87/npm_wasm_pkg_test')
loadWebAssembly()
setTimeout(()=>{
let a = Math.floor(Math.random()*100)
let b = Math.floor(Math.random()*100)
const sum = addTwoNumbers(a,b);
console.log("arrived two: ", sum)
},100)
- Run with the command > $ node script.js