- WebAssembly for Nim.
Types
WASI = ref object of JsRoot
- https://nodejs.org/api/wasi.html#wasi_class_wasi
Lets
wasiImport: JsObject
Procs
func importWasi() {.importjs: "import * as wasi from \'wasi\'@", ...raises: [], tags: [].}
- Alias for import * as module_name from 'module_name';. Must be called once before using the module
func initialize(self: WASI) {.importjs: "wasi.$1(#)", ...raises: [], tags: [].}
- https://nodejs.org/api/wasi.html#wasi_wasi_initialize_instance
func requireWasi() {.importjs: "const wasi = require(\'wasi\')@", ...raises: [], tags: [].}
- Alias for const module_name = require('module_name');. Must be called once before using the module