x/wasm@v1.0.2/wasi.ts

Monorepo for Javascript WebAssembly packages by Wasmer
GitHub Stars
546
Latest
// @deno-types="./pkg/wasmer_wasi_js.d.ts"import baseInit, { WASI, InitInput } from "./pkg/wasmer_wasi_js.js";// @deno-types="./pkg/wasmer_wasi_js.d.ts"export { WASI, MemFS, JSVirtualFile, WasmerRuntimeError } from "./pkg/wasmer_wasi_js.js";
let inited: Promise<any> | null = null;export const init = async (input?: InitInput | Promise<InitInput>, force?: boolean) => { if (inited === null || force === true) { inited = baseInit(input); } await inited;}