This package has been deprecated

Author message:

Use the built-in wasi module instead

wasi

0.0.6 • Public • Published

node-wasi

This module and WASI are still in early development!

Expect bugs and breaking changes!

A module to use WASI modules with Node.js.

const WASI = require('wasi');
 
const wasi = new WASI({
  // preopenDirectories: { '.': '.' },
});
 
const inst = new WebAssembly.Instance(module, {
  wasi_unstable: wasi.exports,
});
wasi.setMemory(inst.exports.memory);
 
inst.exports._start();

Readme

Keywords

none

Package Sidebar

Install

npm i wasi

Weekly Downloads

121

Version

0.0.6

License

MIT

Unpacked Size

1.16 MB

Total Files

20

Last publish

Collaborators

  • snek