ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
498 stars 32 forks source link

get lua print output #9

Closed hansdpf closed 3 years ago

hansdpf commented 3 years ago

Is there a way to get the lua print (from the lua script) into my javscript call so that I can put it into a browser component?

ceifa commented 3 years ago

Yes! It's exactly what try-lua does: https://github.com/ceifa/try-lua/blob/main/src/index.js

hansdpf commented 3 years ago

perfect - thanks