src/nodejs/jswasi

    Dark Mode
Search:
Group by:

  • WebAssembly for Nim.

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 newWasi(options: JsObject): WASI {.importjs: "(new WASI(#))", ...raises: [],
                                        tags: [].}
https://nodejs.org/api/wasi.html#wasi_new_wasi_options
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
func start(self: WASI) {.importjs: "wasi.$1(#)", ...raises: [], tags: [].}
https://nodejs.org/api/wasi.html#wasi_wasi_start_instance