const browserBindings = require("@wasmer/wasi/lib/bindings/browser");
// const nodeBindings = require("@wasmer/wasi/lib/bindings/node");
let myWASIInstance = new WASI({
// OPTIONAL: The pre-opened dirctories
// OPTIONAL: The environment vars
// OPTIONAL: The arguments provided
// OPTIONAL: The environment bindings (fs, path),
// useful for using WASI in diferent environments
// such as Node.js, Browsers, ...
// hrtime: (time?: [number, number]) -> number
// exit: (code?: number) -> void
// kill: (pid: number, signal?: string | number) -> void
// randomFillSync: (buffer: Buffer, offset?: number, size?: number) -> Buffer
// fs: Filesystem (with similar API interface as Node 'fs' module)
// path: Path (with similar API Interface as Node 'path' module)
...browserBindings // Use `nodeBindings` for Node