To build the example, use:
npm run build
To run the component in Node.js, we need to first transpile the component with jco:
npx jco transpile dist/hello-world.wasm -o dist --map 'wasi-*=@bytecodealliance/preview2-shim/*'
To test the component:
node -e "import('./dist/hello-world.js').then(m => console.log(m.hello('Horacio')))"