UNPKG

wasi_unstable

Version:
28 lines (20 loc) 475 B
# Experimental ESM Integration API for WASI _Wraps https://npmjs.org/package/wasi, created by @devsnek, in an ESM integration API._ ### Proposed ES Module Integration Usage ``` npm install wasi_unstable ``` main.mjs ```js import * as M from './wasi-file.wasm'; import { run } from 'wasi_unstable'; run(M, { // defaults: env: process.env, args: process.argv.slice(1) }); ``` Executed with: ``` node --experimental-modules --experimental-wasm-modules main.mjs ```