WASI is an API providing access to the external world to WebAssembly modules.
as-wasi
is an effort to expose the WASI standard set of system calls to AssemblyScript.
Example usage of the Console
and Environ
classes:
import { Console, Environ } from "../node_modules/as-wasi/assembly";
let env = new Environ();
let home = env.get("HOME")!;
Console.log(home);