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
- Host: GitHub
- URL: https://github.com/devsnek/node-wasi
- Owner: devsnek
- License: mit
- Created: 2019-04-13T23:45:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T17:16:21.000Z (over 6 years ago)
- Last Synced: 2025-10-01T00:22:34.347Z (6 months ago)
- Topics: nodejs, wasi, wasm, webassembly
- Language: JavaScript
- Homepage:
- Size: 451 KB
- Stars: 70
- Watchers: 8
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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();
```