0.1.6 • Published 4 years ago
wasi-kernel v0.1.6
wasi-kernel
Simple process management, streams, and shared file system for WASM modules running in workers, based on WASI and Wasmer-JS.
Development
To startup the project, you first need to do:
npm iRunning in Node
If you want to run this project in Node for development, build the module with:
npm run build:nodeCompiled JavaScript files are placed in lib/.
Running in Browser
Browser integration is possible with Parcel. Parcel's integrated server can be used for development.
parcel shell.htmlThen direct your browser to http://localhost:1234/.
When developing your own project that uses wasi-kernel, employ standard import statements and run Parcel on your main entry point (HTML or JavaScript).
import { WorkerProcess } from 'wasi-kernel';
p = new WorkerProcess('/uri/of/prog.wasm');