Skip to content

WebAssemblyOS/node-wasi

 
 

Repository files navigation

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();

About

WASI for Node.js

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 81.3%
  • C 9.9%
  • C++ 4.7%
  • Rust 3.5%
  • Python 0.6%