Use environment variables in WebAssembly with Emscripten

It is typical for native C code to poke and probe a shell environment with POSIX getenv and setenv. JavaScript can preload environment variables expected by a WebAssembly module using the Emscripten toolchain. Native code This example queries the environment for a way to greet. Don’t try to think about reasons for doing it this way; the point is to demonstrate how JS can preload the environment for WebAssembly ;)