An open API service indexing awesome lists of open source software.

https://github.com/devsnek/node-wasi

WASI for Node.js
https://github.com/devsnek/node-wasi

nodejs wasi wasm webassembly

Last synced: 5 months ago
JSON representation

WASI for Node.js

Awesome Lists containing this project

README

          

# 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.

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