npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

wasi_unstable

0.1.3

@guybedford

npmHomeRepoSnykSocket
Downloads:0
$ npm install wasi_unstable
DailyWeeklyMonthlyYearly

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

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