1.0.2 • Published 2 years ago
@stravid87/npm_wasm_pkg_test v1.0.2
NPM WASM PKG Test
To use: 1) npm i @stravid87/npm_pkg_test 2) 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)
3) Run with the command > $ node script.js